diff options
Diffstat (limited to 'backuper.sh')
-rw-r--r-- | backuper.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backuper.sh b/backuper.sh index 9812e71..004d970 100644 --- a/backuper.sh +++ b/backuper.sh @@ -29,6 +29,7 @@ EXCLUDE="" STORE="" AFTER="" FILE_TYPE="" +DST="" ## Pipeline variables PID_GENERATE="" @@ -151,7 +152,8 @@ run() { store_file() { [ -z "$1" ] && error "Specify destination" - store "sh -c 'cat > ${1}/${FILENAME}'" + DST="$1" + store "sh -c 'cat > ${DST}/${FILENAME}'" } ## Internal functions |