Order of execution should be: copy/delete/script and not copy/script/delete - drist - a remote deployment tool HTML git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit cf522f8b25b68b93fb3027c89a46a68b918b473c DIR parent 119ccda248814e19ef21577a3bb90bf582f464a1 HTML Author: Solene Rapenne <solene@perso.pw> Date: Mon, 9 Dec 2019 11:33:10 +0100 Order of execution should be: copy/delete/script and not copy/script/delete Diffstat: M drist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/drist b/drist @@ -110,10 +110,10 @@ delete_files() { copy_files "files" "$1" copy_files "files-${HOSTNAME}" "$1" -remote_script "script" "$1" -remote_script "script-${HOSTNAME}" "$1" delete_files "absent" "$1" delete_files "absent-${HOSTNAME}" "$1" +remote_script "script" "$1" +remote_script "script-${HOSTNAME}" "$1" # close socket if persistance is actived if [ "$SSHONCE" -eq 1 ]