mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-11-21 22:25:35 -05:00
Don't run without a target
This commit is contained in:
parent
926ffa1d34
commit
5913503be2
1 changed files with 13 additions and 0 deletions
13
mkstage4.sh
13
mkstage4.sh
|
@ -41,6 +41,19 @@ while getopts ':t:sqcb' flag; do
|
|||
esac
|
||||
done
|
||||
|
||||
if [ "$TARGET" == "" ]
|
||||
then
|
||||
echo "`basename $0`: no target specified."
|
||||
echo "syntax:"
|
||||
echo "\$ `basename $0` [-q -c -b] [-s || -t <target-mountpoint>] <archive-filename> [custom-tar-options]"
|
||||
echo "-q: activates quiet mode (no confirmation)."
|
||||
echo "-c: excludes connman network lists."
|
||||
echo "-b: excludes boot directory."
|
||||
echo "-s: makes tarball of current system."
|
||||
echo "-t: makes tarball of system located at the <target-mountpoint>."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# shifts pointer to read mandatory output file specification
|
||||
shift $(($OPTIND - 1))
|
||||
ARCHIVE=$1
|
||||
|
|
Loading…
Reference in a new issue