fix git detection and installation
This commit is contained in:
parent
08f9fb0348
commit
e07f95ceab
@ -6,6 +6,16 @@ configPath="./config"
|
|||||||
serverConfigDir="server-properties"
|
serverConfigDir="server-properties"
|
||||||
packwizPath="http://nginxwebdav:32080/ferdinland/modpacks/server/smp/"
|
packwizPath="http://nginxwebdav:32080/ferdinland/modpacks/server/smp/"
|
||||||
|
|
||||||
|
# Install git if it's not installed
|
||||||
|
export git=$(which git)
|
||||||
|
if [-z $git]
|
||||||
|
then
|
||||||
|
eco installing git...
|
||||||
|
apt install git
|
||||||
|
else
|
||||||
|
echo git is already installed
|
||||||
|
fi
|
||||||
|
|
||||||
# Update config directory
|
# Update config directory
|
||||||
(cd "$configPath" && git pull)
|
(cd "$configPath" && git pull)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user