File mode Change
This commit is contained in:
@@ -31,30 +31,20 @@ if [ ! -e $GPLAN_IMG ]; then
|
|||||||
mv $GPLAN_IMG.tmp $GPLAN_IMG
|
mv $GPLAN_IMG.tmp $GPLAN_IMG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get repos
|
|
||||||
function fetch_local_repo() {
|
|
||||||
mkdir -p $1
|
|
||||||
git -C $1 init
|
|
||||||
git -C $1 fetch -t "$2" $3
|
|
||||||
git -C $1 reset --hard FETCH_HEAD
|
|
||||||
}
|
|
||||||
|
|
||||||
mkdir -p rpi-share || true
|
mkdir -p rpi-share || true
|
||||||
|
|
||||||
if [ ! -e rpi-share/cbang ]; then
|
if [ ! -e rpi-share/cbang ]; then
|
||||||
if [ "$CBANG_HOME" != "" ]; then
|
mkdir -p rpi-share/cbang
|
||||||
fetch_local_repo rpi-share/cbang "$CBANG_HOME" master
|
git -C rpi-share/cbang init
|
||||||
else
|
git -C rpi-share/cbang remote add origin https://github.com/CauldronDevelopmentLLC/cbang
|
||||||
git clone https://github.com/CauldronDevelopmentLLC/cbang \
|
git -C rpi-share/cbang fetch --depth 1 origin 18f1e963107ef26abe750c023355a5c40dd07853
|
||||||
rpi-share/cbang
|
git -C rpi-share/cbang reset --hard FETCH_HEAD
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e rpi-share/camotics ]; then
|
if [ ! -e rpi-share/camotics ]; then
|
||||||
if [ "$CAMOTICS_HOME" != "" ]; then
|
mkdir -p rpi-share/camotics
|
||||||
fetch_local_repo rpi-share/camotics "$CAMOTICS_HOME" master
|
git -C rpi-share/camotics init
|
||||||
else
|
git -C rpi-share/camotics remote add origin https://github.com/CauldronDevelopmentLLC/camotics
|
||||||
git clone https://github.com/CauldronDevelopmentLLC/camotics \
|
git -C rpi-share/camotics fetch --depth 1 origin ec876c80d20fc19837133087cef0c447df5a939d
|
||||||
rpi-share/camotics
|
git -C rpi-share/camotics reset --hard FETCH_HEAD
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
0
scripts/gplan-init-dev-img.sh
Normal file → Executable file
0
scripts/gplan-init-dev-img.sh
Normal file → Executable file
Reference in New Issue
Block a user