From e4fa4a310d8dacb5d8bf95a8bf768cc6bfa82345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Sun, 24 Jul 2016 23:45:48 +0200 Subject: Fix path resolving --- backuper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3