Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 9e96f5e..2e31e65 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -827,7 +827,9 @@ while getopts 'p:r:C:L:P:A:D:w:o:s:c:g:vh?' arg; do
esac
done
-if (( OPTIND <= 1 )); then
+shift $((OPTIND - 1))
+
+if (( $# < 1 )); then
_msg_error "No command specified" 0
_usage 1
fi
@@ -836,7 +838,6 @@ if (( EUID != 0 )); then
_msg_error "${app_name} must be run as root." 1
fi
-shift $((OPTIND - 1))
command_name="${1}"
# Set directory path defaults for legacy commands