SVN: rc-scripts/trunk/lib/functions

draenog draenog at pld-linux.org
Wed Jan 25 15:40:31 CET 2012


Author: draenog
Date: Wed Jan 25 15:40:30 2012
New Revision: 12468

Modified:
   rc-scripts/trunk/lib/functions
Log:
- fix bashism in previous commit


Modified: rc-scripts/trunk/lib/functions
==============================================================================
--- rc-scripts/trunk/lib/functions	(original)
+++ rc-scripts/trunk/lib/functions	Wed Jan 25 15:40:30 2012
@@ -619,7 +619,7 @@
 	if [ -n "$user" -a "$user" != "root" ]; then
 		prog="/bin/su $user -s /bin/sh -c \""
 	fi
-	if [ "$fork" == "1" ]; then
+	if [ "$fork" = "1" ]; then
 		prog="/usr/bin/setsid ${prog:-sh -c \"}"
 	fi
 	# If command to execute ends with quotation mark, add remaining


More information about the pld-cvs-commit mailing list