From 080c7accc3866ad0c88e50be49c75a505ae0d970 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 17 May 2012 02:46:15 +0000 Subject: [PATCH] Safer invocation of the RM, MKDIR and INSTALL wrappers --- doc/docbook.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/docbook.sh b/doc/docbook.sh index 6427dfd..271e07a 100755 --- a/doc/docbook.sh +++ b/doc/docbook.sh @@ -107,7 +107,7 @@ while [ $# -gt 0 ]; do #uninstall if [ "$uninstall" -eq 1 ]; then - $DEBUG $RM "$instdir/$target" || exit 2 + $DEBUG $RM -- "$instdir/$target" || exit 2 continue fi @@ -121,7 +121,7 @@ while [ $# -gt 0 ]; do #install if [ "$install" -eq 1 ]; then - $DEBUG $MKDIR "$instdir" || exit 2 - $DEBUG $INSTALL "$target" "$instdir/$target" || exit 2 + $DEBUG $MKDIR -- "$instdir" || exit 2 + $DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2 fi done