-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crontab script to run on sccn server
- Loading branch information
1 parent
e6ee5e7
commit 4da7ec0
Showing
1 changed file
with
5 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
#!/bin/bash | ||
|
||
DIRECTORY="/path/to/directory" | ||
|
||
if [ -d "$DIRECTORY" ]; then | ||
# Directory exists, pull changes | ||
cd "$DIRECTORY" | ||
git pull | ||
else | ||
# Directory doesn't exist, clone from GitHub | ||
git clone https://github.com/username/repository.git "$DIRECTORY" | ||
fi | ||
cd /Users/dtyoung/Documents/EEGLAB/sccn.github.io/code/plugins | ||
git pull --rebase | ||
python update_plugins.py | ||
git add -A && git commit -m "scheduled plugin update" | ||
git push |