summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-initramfs.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/build-initramfs.sh b/build-initramfs.sh
index f6c54ce0..ec3694ff 100755
--- a/build-initramfs.sh
+++ b/build-initramfs.sh
@@ -316,9 +316,12 @@ parse_command_line() {
break
;;
*)
- echo \
- "Error with given option \"$1\": This argument is not available."
- return 1
+ if [ -n "$1" ]; then
+ echo \
+ "Error with given option \"$1\": This argument is not available."
+ return 1
+ fi
+ ;;
esac
shift
done