remove temp command file after execution

This commit is contained in:
Aaron Bieber 2019-10-15 20:14:14 -06:00
parent d93600ace4
commit 869969f9ba
Signed by: qbit
GPG Key ID: 279160AB1BE1236B

View File

@ -216,5 +216,5 @@ if [ -f ./commands ]; then
rm $_tmp rm $_tmp
msg 0 "executing 'commands' file" msg 0 "executing 'commands' file"
_scp commands "${RUN_USER}@${SERVER}:${_tmp}" _scp commands "${RUN_USER}@${SERVER}:${_tmp}"
_ssh ${RUN_USER}@${SERVER} "chmod +x ${_tmp}; . ${_tmp}" _ssh ${RUN_USER}@${SERVER} "chmod +x ${_tmp}; . ${_tmp}; rm ${_tmp}"
fi fi