Added quote marks on SSH commands (#372)

Added quote marks for the SSH commands in steps and 6.
This commit is contained in:
guyav 2017-03-27 10:19:01 +03:00 committed by Michael Boelen
parent 2b14437494
commit a0849ac053
1 changed files with 2 additions and 2 deletions

View File

@ -70,14 +70,14 @@
#if [ $? -gt 1 ]; then echo "Could not perform remote audit"; ExitFatal; fi
echo " ${BLUE}* ${WHITE}Step 4${NORMAL}: ${CYAN}Clean up directory${NORMAL}"
printf "%s\n\n" " ssh ${REMOTE_TARGET} rm -rf ~/tmp-lynis"
printf "%s\n\n" " ssh ${REMOTE_TARGET} \"rm -rf ~/tmp-lynis\""
echo " ${BLUE}* ${WHITE}Step 5${NORMAL}: ${CYAN}Retrieve log and report${NORMAL}"
printf "%s\n" " scp -q ${REMOTE_TARGET}:/tmp/lynis.log ./files/${REMOTE_TARGET}-lynis.log"
printf "%s\n\n" " scp -q ${REMOTE_TARGET}:/tmp/lynis-report.dat ./files/${REMOTE_TARGET}-lynis-report.dat"
echo " ${BLUE}* ${WHITE}Step 6${NORMAL}: ${CYAN}Clean up tmp files (when using non-privileged account)${NORMAL}"
printf "%s\n\n" " ssh ${REMOTE_TARGET} rm /tmp/lynis.log /tmp/lynis-report.dat"
printf "%s\n\n" " ssh ${REMOTE_TARGET} \"rm /tmp/lynis.log /tmp/lynis-report.dat\""
# No more Lynis output
QUIET=1