Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=a092c00a6d5fba619c1a9f28bdbea68bf928c97a

commit a092c00a6d5fba619c1a9f28bdbea68bf928c97a
Author: James Buren <r...@frugalware.org>
Date:   Mon Jun 4 18:18:46 2012 -0500

systemd.sh: enforce check for '=' after each systemd unit. it bugs out on units 
that aren't doing this.

diff --git a/source/include/systemd.sh b/source/include/systemd.sh
index 928191f..77de4ca 100644
--- a/source/include/systemd.sh
+++ b/source/include/systemd.sh
@@ -27,6 +27,12 @@ if [ -z "$_F_systemd_units" ]; then
error "No systemd units defined."
Fdie
fi
+for i in ${_F_systemd_units}; do
+       if ! echo "$i" | grep -qo '='; then
+               error "Each systemd unit must have a '=' appended."
+               Fdie
+       fi
+done

if [ -z "$_F_systemd_scriptlet" ]; then
_F_systemd_scriptlet="$Fincdir/systemd.install"
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to