diff options
Diffstat (limited to 'server/bin/addtodhcp')
-rwxr-xr-x | server/bin/addtodhcp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/addtodhcp b/server/bin/addtodhcp index 8aa0651b..039de34d 100755 --- a/server/bin/addtodhcp +++ b/server/bin/addtodhcp @@ -50,7 +50,7 @@ done grep -q "^[ ]*\bsubnet\b" $DHCPCONF || raiseError access "Cannot detect any \"group\" clauses in DHCP configuration file" grep -q "^[ ]*\bgroup\b" $DHCPCONF && raiseError access "Cannot modify DHCP configuration file with \"group\" clauses" -[ "$*" ] && WHEREEXPR="WHERE $(echo ${*//\'/\'} | sed -e "s/\('[^']*'\)/nombreaula=\1 OR nombreordenador=\1 OR/g")" +[ "$*" ] && WHEREEXPR="WHERE $(echo ${*//\'/\\\'} | sed -e "s/\('[^']*'\)/nombreaula=\1 OR nombreordenador=\1 OR/g")" WHEREEXPR="${WHEREEXPR% OR}" # Looking for data. |