diff --git a/screen-save-all-sessions b/screen-save-all-sessions index 7a29680..4072a91 100755 --- a/screen-save-all-sessions +++ b/screen-save-all-sessions @@ -31,16 +31,16 @@ do savedir="~${screen_user}/.screen-save/$(date +%Y-%m-%d)/" command="mkdir -p ${savedir}" if [ "$EUID" -ne 0 ]; then - eval "${command}" + ${command} else su - "${screen_user}" -c "${command}" fi fi - command="${SCRIPTDIR}/screen-save ${screen_pid} ${savedir}