From 88966297ac7f469643d679b5d00df6e4052e5864 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sun, 5 Feb 2023 14:40:03 +0000 Subject: [PATCH] whoops, dunno why there's two of these --- smart-commit | 2 +- smart-commit.sh | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) mode change 100755 => 100644 smart-commit delete mode 100644 smart-commit.sh 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