Dont try to pull submodules if not possible
This commit is contained in:
parent
ea6968019c
commit
d5f8224786
@ -6,9 +6,12 @@ export EWCONFIG_ROOT=$(dirname $(readlink -f $0))
|
|||||||
|
|
||||||
# Pull git submodules if needed
|
# Pull git submodules if needed
|
||||||
if type -p git > /dev/null; then
|
if type -p git > /dev/null; then
|
||||||
|
# If we have permission to run git
|
||||||
|
if [ -d "$EWCONFIG_ROOT/.git" ]; then
|
||||||
echo "Syncing git submodules..."
|
echo "Syncing git submodules..."
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Make sure scripts are all executable
|
# Make sure scripts are all executable
|
||||||
chmod +x $EWCONFIG_ROOT/configs/scripts/*
|
chmod +x $EWCONFIG_ROOT/configs/scripts/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user