Skip to content

Commit 25389ed

Browse files
Merge pull request #7 from jlsalvador/patch-1
systemd 235 ignore double exclamation mark
2 parents d16de31 + d713304 commit 25389ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkinitcpio-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ add_systemd_unit_X() {
8484
# don't add binaries unless they are required
8585
if [[ ${values[0]:0:1} != '-' ]]; then
8686
local target=
87-
target=${values[0]}
87+
target=${values[0]#\!\!}
8888
if [[ -f $BUILDROOT$target ]] ; then
8989
quiet "reuse present binary $target"
9090
else
@@ -98,7 +98,7 @@ add_systemd_unit_X() {
9898
# format:
9999
# InitrdBinary=/path/exec [source=/host/exec] [replace=yes] [optional=yes]
100100
local source= target= args= replace= optional=
101-
target=${values[0]} ; args=${values[@]:1:9}
101+
target=${values[0]#\!\!} ; args=${values[@]:1:9}
102102
[[ $args ]] && local ${args[*]}
103103
[[ $source ]] || source="$target"
104104
if [[ -f $BUILDROOT$target ]] ; then

0 commit comments

Comments
 (0)