mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
add -h to SyncScripts
This commit is contained in:
parent
9b0b7af6da
commit
61865e6617
1 changed files with 11 additions and 2 deletions
|
@ -6,6 +6,14 @@
|
||||||
# IF YOU WANT TO UPDATE YOUR RASPIBLITZ:
|
# IF YOU WANT TO UPDATE YOUR RASPIBLITZ:
|
||||||
# https://github.com/rootzoll/raspiblitz/blob/master/FAQ.md#how-to-update-my-raspiblitz-after-version-098
|
# https://github.com/rootzoll/raspiblitz/blob/master/FAQ.md#how-to-update-my-raspiblitz-after-version-098
|
||||||
|
|
||||||
|
# command info
|
||||||
|
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-help" ]; then
|
||||||
|
echo "FOR DEVELOPMENT USE ONLY!"
|
||||||
|
echo "RaspiBlitz Sync Scripts"
|
||||||
|
echo "XXsyncScripts.sh [-clean] [-install] branch [repo]"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cd /home/admin/raspiblitz
|
cd /home/admin/raspiblitz
|
||||||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||||
|
|
||||||
|
@ -84,6 +92,7 @@ if [ ${#wantedBranch} -gt 0 ]; then
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
echo "USAGE-INFO: ./XXsyncScripts.sh '[BRANCHNAME]'"
|
echo "USAGE-INFO: ./XXsyncScripts.sh '[BRANCHNAME]'"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
origin=$(git remote -v | grep 'origin' | tail -n1)
|
origin=$(git remote -v | grep 'origin' | tail -n1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue