-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull.sh
More file actions
executable file
·24 lines (19 loc) · 904 Bytes
/
pull.sh
File metadata and controls
executable file
·24 lines (19 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Basic update script to simplify pulling everything from git to an install.
# Script runs on the assumption it will be run from one level below arcfolder
# Don't leave this in a production Arcfolder installation, it could be a security risk.
if [ ! -d ./arcfolder/ ]; then
git clone git://github.com/Binary-Heartbeat/Arcfolder.git ./arcfolder/ && cd ./arcfolder/
else
cd ./arcfolder/ && git reset --hard && git clean -f -d && git pull
fi
if [ ! -d ./includes/lib/auth/ ]; then
git clone git://github.com/Binary-Heartbeat/PHP-Auth.git ./includes/lib/auth/
else
cd ./includes/lib/auth/ && git reset --hard && git clean -f -d && git pull && cd ../../../
fi
if [ ! -d ./includes/lib/common/ ]; then
git clone git://github.com/Binary-Heartbeat/PHP-Common.git ./includes/lib/common/
else
cd ./includes/lib/common/ && git reset --hard && git clean -f -d && git pull
fi