diff --git a/smart-commit b/smart-commit old mode 100755 new mode 100644 index 45adb08..e724356 --- a/smart-commit +++ b/smart-commit @@ -1,4 +1,4 @@ -#! /bin/bash +#! /bin/sh STATUS=$(git status --porcelain) STATUS_LEN=${#STATUS} diff --git a/smart-commit.sh b/smart-commit.sh deleted file mode 100644 index e724356..0000000 --- a/smart-commit.sh +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh - -STATUS=$(git status --porcelain) -STATUS_LEN=${#STATUS} -if [ $STATUS_LEN = 0 ]; then - exit 0 -else - git add . - git commit -qm "CI/CD Commit: $(date -Iseconds)" -fi