summaryrefslogtreecommitdiff
path: root/trigger
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2024-12-03 01:07:11 +0600
committerLibravatar Mubashshir <ahmubashshir@gmail.com>2024-12-03 01:07:54 +0600
commit5775207784501eb18c69dfd9cffa5705ea3040fd (patch)
tree040b8ac5d180a5b59c833652b338b4d63df217e0 /trigger
parent7e2b61056ecd4e3ea9cf7f06363b1527fcf01436 (diff)
downloadrepo-5775207784501eb18c69dfd9cffa5705ea3040fd.tar.gz
repo-5775207784501eb18c69dfd9cffa5705ea3040fd.zip
Commit 1
Diffstat (limited to '')
-rwxr-xr-xtrigger4
1 files changed, 2 insertions, 2 deletions
diff --git a/trigger b/trigger
index 62336b6..f5cd4dc 100755
--- a/trigger
+++ b/trigger
@@ -1,6 +1,6 @@
#!/bin/bash
-declare -i a=$(cat id 2> /dev/null)
-echo $((a++)) > id
+declare -i a=$(< id)
+echo $((++a)) > id
git add id
git commit -m "Commit $a"
git push