From: Silvio Rhatto Date: Sun, 31 Dec 2017 19:45:07 +0000 (-0200) Subject: Minor restricted shell fix X-Git-Tag: 0.1.0~282 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6207b570cf9bc67fb0988ce91f5c79e6430c0acc;p=kvmx.git Minor restricted shell fix --- diff --git a/kvmx b/kvmx index 1c30ad6..80fbcff 100755 --- a/kvmx +++ b/kvmx @@ -1661,6 +1661,9 @@ function kvmx_shell { if ! echo $restricted_actions | grep -q ":${STDIN[0]}:"; then echo "Running in restricted shell mode." echo "Allowed commands are only `echo $restricted_actions | tr ':' ' '`" + else + # Process command + $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} fi else # Process command