Skip to content

Commit

Permalink
Merge pull request #7 from jlsalvador/patch-1
Browse files Browse the repository at this point in the history
systemd 235 ignore double exclamation mark
Andrei-Pozolotin authored Oct 16, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents d16de31 + d713304 commit 25389ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkinitcpio-install.sh
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ add_systemd_unit_X() {
# don't add binaries unless they are required
if [[ ${values[0]:0:1} != '-' ]]; then
local target=
target=${values[0]}
target=${values[0]#\!\!}
if [[ -f $BUILDROOT$target ]] ; then
quiet "reuse present binary $target"
else
@@ -98,7 +98,7 @@ add_systemd_unit_X() {
# format:
# InitrdBinary=/path/exec [source=/host/exec] [replace=yes] [optional=yes]
local source= target= args= replace= optional=
target=${values[0]} ; args=${values[@]:1:9}
target=${values[0]#\!\!} ; args=${values[@]:1:9}
[[ $args ]] && local ${args[*]}
[[ $source ]] || source="$target"
if [[ -f $BUILDROOT$target ]] ; then

0 comments on commit 25389ed

Please sign in to comment.