diff options
author | torben | 2016-03-10 17:55:28 +0100 |
---|---|---|
committer | torben | 2016-03-10 17:55:28 +0100 |
commit | ef4fae3da3c533cc5a06d2819f608174fed26aaa (patch) | |
tree | 082347bed62f02a334f3ea9c6cb454a4cc5ca16c /builder/build-initramfs.sh | |
parent | Improve. (diff) | |
download | systemd-init-ef4fae3da3c533cc5a06d2819f608174fed26aaa.tar.gz systemd-init-ef4fae3da3c533cc5a06d2819f608174fed26aaa.tar.xz systemd-init-ef4fae3da3c533cc5a06d2819f608174fed26aaa.zip |
Fix.
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-x | builder/build-initramfs.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 1adcf7ca..6579f4d8 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -186,7 +186,7 @@ parse_command_line() { yes debug - >>> parse_command_line -p; echo $? + >>> parse_command_line -p +doc_test_contains Error with given option "-p": +doc_test_ellipsis @@ -264,11 +264,12 @@ parse_command_line() { debug='yes' ;; -p|--file-path) + local given_argument="$1" shift file_path="$1" if [[ "$file_path" == '' ]]; then logging.critical \ - "Error with given option "$1": This option needs a path to save initramfs image to." + "Error with given option \"$given_argument\": This option needs a path to save initramfs image to." return 1 fi shift @@ -286,11 +287,12 @@ parse_command_line() { use_systemd_in_initramfs='yes' ;; -t|--target) + local given_argument="$1" shift target="$1" if [[ "$target" == '' ]]; then logging.critical \ - "Error with given option "$1": This option needs a path create initramfs from." + "Error with given option \"$given_argument\": This option needs a path create initramfs from." return 1 fi shift @@ -308,7 +310,7 @@ parse_command_line() { break ;; *) - logging.critical "Error with given option "$1": This argument is not available." + logging.critical "Error with given option \"$1\": This argument is not available." return 1 esac done |