handle config with spaces over ssh

This commit is contained in:
Michael Hobbs committed 2014-12-21 14:51:41 -08:00
1 parent c697c65508
commit 67b7fa6263
2 files changed
+10 -5

No files matched your search

+7 -2
View File
@@ -21,8 +21,13 @@ fi
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
export -n SSH_ORIGINAL_COMMAND
$0 $SSH_ORIGINAL_COMMAND
exit $?
if [[ $1 =~ config-* ]];then
xargs $0 <<<$SSH_ORIGINAL_COMMAND
exit $?
else
$0 $SSH_ORIGINAL_COMMAND
exit $?
fi
fi
case "$1" in