From 259b707cce04d37ff04662e40d55a816a5fc8a48 Mon Sep 17 00:00:00 2001 From: deajan Date: Thu, 31 Mar 2016 23:18:06 +0200 Subject: [PATCH] Fixed local in non function remote heredoc --- dev/debug_osync.sh | 4 ++-- dev/n_osync.sh | 4 ++-- osync.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dev/debug_osync.sh b/dev/debug_osync.sh index f7626a1..5fd0fdd 100755 --- a/dev/debug_osync.sh +++ b/dev/debug_osync.sh @@ -1924,10 +1924,10 @@ $SSH_CMD ERROR_ALERT=0 sync_on_changes=$sync_on_changes _SILENT=$_SILENT _DEBUG= ## Empty earlier failed delete list > "$FAILED_DELETE_LIST" - local parentdir= + parentdir= ## On every run, check wheter the next item is already deleted because it is included in a directory already deleted - local previous_file="" + previous_file="" OLD_IFS=$IFS IFS=$'\r\n' for files in $(cat "$FILE_LIST") diff --git a/dev/n_osync.sh b/dev/n_osync.sh index cfee2f6..fd632ff 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -889,10 +889,10 @@ $SSH_CMD ERROR_ALERT=0 sync_on_changes=$sync_on_changes _SILENT=$_SILENT _DEBUG= ## Empty earlier failed delete list > "$FAILED_DELETE_LIST" - local parentdir= + parentdir= ## On every run, check wheter the next item is already deleted because it is included in a directory already deleted - local previous_file="" + previous_file="" OLD_IFS=$IFS IFS=$'\r\n' for files in $(cat "$FILE_LIST") diff --git a/osync.sh b/osync.sh index f10fe1a..cac19ee 100755 --- a/osync.sh +++ b/osync.sh @@ -1824,10 +1824,10 @@ $SSH_CMD ERROR_ALERT=0 sync_on_changes=$sync_on_changes _SILENT=$_SILENT _DEBUG= ## Empty earlier failed delete list > "$FAILED_DELETE_LIST" - local parentdir= + parentdir= ## On every run, check wheter the next item is already deleted because it is included in a directory already deleted - local previous_file="" + previous_file="" OLD_IFS=$IFS IFS=$'\r\n' for files in $(cat "$FILE_LIST")