1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-25 12:20:42 +01:00

Release alix: remove debug prints, check if image file exists

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-02-14 13:47:54 +01:00
parent 5dd2790a67
commit 9640f87899
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
set -u -e -x
set -u -e
FILE=$1
MOUNTED=0
@ -16,6 +16,11 @@ trap do_cleanup ERR INT
cd `dirname $0`
if [ -e "$FILE" ]; then
echo "Error, $FILE exists"
exit 1
fi
truncate -s 1G $FILE
parted --script $FILE \

View file

@ -1,6 +1,6 @@
#!/bin/sh
set -u -e -x
set -u -e
CONFIRM="Yes, I am"
DEVICE=$1