mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-27 02:01:53 +01:00
fix packer script
This commit is contained in:
parent
8b77877d6b
commit
69a18c7375
14
ci/packer.sh
14
ci/packer.sh
@ -17,12 +17,6 @@ if [ "$EUID" -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check if internet is available
|
||||
if ping -c 1 "1.1.1.1" &> /dev/null; then
|
||||
echo "error='script needs internet connection to run'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# usage info
|
||||
echo "packer.sh [BRANCH] [arm|x86] [min|fat] [?lastcommithash]"
|
||||
echo "Build RaspiBlitz install images on a Debian LIVE system"
|
||||
@ -32,6 +26,14 @@ echo "Results will be stored in:"
|
||||
echo $BUILDFOLDER
|
||||
echo "Start this script in the root of an writable 128GB NTFS formatted USB drive."
|
||||
|
||||
# check if internet is available
|
||||
if ping -c 1 "1.1.1.1" &> /dev/null; then
|
||||
echo "# checking internet"
|
||||
else
|
||||
echo "error='script needs internet connection to run'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# get parameters
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user