diff options
-rwxr-xr-x | pbuilder-checkparams | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 34b4a42..54afa06 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -41,9 +41,10 @@ IGNORE_UMOUNT="" while [ -n "$1" ]; do case "$1" in --basetgz) - if [ "${PBCURRENTCOMMANDLINEOPERATION}" = 'create' ]; then - touch "$2"; - fi + case "${PBCURRENTCOMMANDLINEOPERATION}" in + create|--create) + touch "$2"; + esac if [ ! -f "$2" ]; then echo "E: File $2 does not exist" >&2 exit 1 |