Skip to content

Commit e2ef916

Browse files
Fraser Litheshteves
authored andcommitted
Add exit condition for cd
1 parent 9d74fcc commit e2ef916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
info="Commit: $(date)"
1717

18-
cd ~/Desktop/code/commit-bot/
18+
cd ~/Desktop/code/commit-bot/ || exit 1
1919
echo "$info" >> output.txt
2020
echo "$info"
2121
echo

0 commit comments

Comments
 (0)