From 8a79ec6a8fcb0631dfd03ea1a20c863fb6d96ea4 Mon Sep 17 00:00:00 2001 From: Julian van de Groep Date: Tue, 12 Feb 2019 11:40:11 +0100 Subject: [PATCH] Make sure we're running from the proper directory. --- do-backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/do-backup.sh b/do-backup.sh index ca7cc0e..5ef9def 100755 --- a/do-backup.sh +++ b/do-backup.sh @@ -1,3 +1,5 @@ +cwd="$(pwd)" export DOTNET_CLI_TELEMETRY_OPTOUT=1 - +cd "$(dirname "$0")" dotnet run --project BackupManager -c Release -f netcoreapp2.2 -- -cron +cd "$(cwd)"