Committed
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Before running this script, make sure that you added an alias to your shell config file (~/.bashrc, ~/.zshrc, etc.)
|
||||
#alias trigger_git='touch /tmp/please_update'
|
||||
#Then run source ~/.zshrc to load the new alias
|
||||
|
||||
#Variable to store the trigger file path
|
||||
TRIGGER_FILE="/tmp/please_update"
|
||||
|
||||
# An alias so i no longer have to type the full command
|
||||
alias trigger_git="touch $TRIGGER_FILE"
|
||||
|
||||
#The magic itself
|
||||
echo "[INFO] Watching $TRIGGER_FILE..."
|
||||
echo "[INFO] To trigger a git commit and push, run: trigger_git"
|
||||
|
||||
Reference in New Issue
Block a user