We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ee5e7 commit dbf2181Copy full SHA for dbf2181
code/plugins/update_plugins.sh
@@ -1,12 +1,7 @@
1
#!/bin/bash
2
-
3
-DIRECTORY="/path/to/directory"
4
5
-if [ -d "$DIRECTORY" ]; then
6
- # Directory exists, pull changes
7
- cd "$DIRECTORY"
8
- git pull
9
-else
10
- # Directory doesn't exist, clone from GitHub
11
- git clone https://github.com/username/repository.git "$DIRECTORY"
12
-fi
+cd /home/dung/sccn.github.io
+git pull --rebase
+cd /home/dung/sccn.github.io/code/plugins
+python update_plugins.py
+git add -A && git commit -m "scheduled plugin update"
+git push
0 commit comments