summarylogtreecommitdiffstats
path: root/initcpio-install-systemd
diff options
context:
space:
mode:
Diffstat (limited to 'initcpio-install-systemd')
-rw-r--r--initcpio-install-systemd11
1 files changed, 7 insertions, 4 deletions
diff --git a/initcpio-install-systemd b/initcpio-install-systemd
index 03311bbafdea..9e23070dd53f 100644
--- a/initcpio-install-systemd
+++ b/initcpio-install-systemd
@@ -69,10 +69,13 @@ add_systemd_unit() {
map add_systemd_unit "${values[@]}"
;;
Exec*)
- # don't add binaries unless they are required
- if [[ ${values[0]:0:1} != '-' ]]; then
- add_binary "${values[0]}"
- fi
+ # do not add binaries unless they are required,
+ # strip special executable prefixes
+ case ${values[0]} in
+ -*) ;;
+ !!*) add_binary "${values[0]#!!}" ;;
+ *) add_binary "${values[0]#[@!:+]}" ;;
+ esac
;;
esac