diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-23 11:25:30 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-23 11:25:30 +0200 |
commit | e3e4b10cc85decc832117717af8a4f4d9f6f728d (patch) | |
tree | a5724d3fc83e23f6ce7fc437f0fd0971e7eed61e /deploy.sh | |
parent | Add numerous new things (diff) | |
download | MatrixUtils-e3e4b10cc85decc832117717af8a4f4d9f6f728d.tar.xz |
Prevent deploy without commit
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh index 9762db5..66182a4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,12 @@ #!/bin/sh +if [[ -z $(git status -s) ]] +then + echo "tree is clean" +else + echo "tree is dirty, please commit changes before running this" + exit +fi + BASE_DIR=`pwd` rm -rf **/bin/Release cd MatrixRoomUtils.Web |