made Xsession script POSIX-compliant, simplified it
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 12 Mar 2010 21:53:37 +0000 (16:53 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 12 Mar 2010 21:53:37 +0000 (16:53 -0500)
packaging/debian/70monkeysphere_use-validation-agent

index 1335458ce0bc812bb829415b6f29b3d1a6ceaa1a..4723f5cdd34f9b8a861afb502653848e57db91c2 100644 (file)
@@ -26,12 +26,12 @@ MSSYSCONFIG=/etc/monkeysphere/monkeysphere.conf
 MSUSERCONFIG="$HOME/.monkeysphere/monkeysphere.conf"
 
 if [ -x "$MSVAGENT" ] ; then
-    USEMSVAGENT=$(sh -c "USE_VALIDATION_AGENT=
-. '$MSSYSCONFIG' 2>/dev/null
-. '$MSUSERCONFIG' 2>/dev/null || :
-printf '%s' "'"$USE_VALIDATION_AGENT"')
+    USEMSVAGENT=$(USE_VALIDATION_AGENT=
+. "$MSSYSCONFIG" 2>/dev/null
+. "$MSUSERCONFIG" 2>/dev/null || :
+printf '%s' "$USE_VALIDATION_AGENT")
     
-    if [ "$USEMSVAGENT" == "true" ] ; then
+    if [ "$USEMSVAGENT" = "true" ] ; then
         STARTUP="$MSVAGENT $STARTUP"
     fi
 fi