mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
37 lines
691 B
Bash
Executable File
37 lines
691 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
YELLOW="\e[93m"
|
|
GREEN="\e[32m"
|
|
RED="\e[31m"
|
|
ENDCOLOR="\e[0m"
|
|
|
|
printMessage() {
|
|
printf "${YELLOW}AppFlowy : $1${ENDCOLOR}\n"
|
|
}
|
|
|
|
printSuccess() {
|
|
printf "${GREEN}AppFlowy : $1${ENDCOLOR}\n"
|
|
}
|
|
|
|
printError() {
|
|
printf "${RED}AppFlowy : $1${ENDCOLOR}\n"
|
|
}
|
|
|
|
printMessage "Running local AppFlowy pre-push hook."
|
|
|
|
if [[ `git status --porcelain` ]]; then
|
|
printError "This script needs to run against committed code only. Please commit or stash you changes."
|
|
exit 1
|
|
fi
|
|
|
|
#
|
|
#printMessage "Running the Flutter analyzer"
|
|
#flutter analyze
|
|
#
|
|
#if [ $? -ne 0 ]; then
|
|
# printError "Flutter analyzer error"
|
|
# exit 1
|
|
#fi
|
|
#
|
|
#printMessage "Finished running the Flutter analyzer"
|