From 8872d8390da4f4ce2f499a905bb1f68729d5e078 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 21 May 2020 13:41:34 +0200 Subject: [PATCH] Fixed usage of docsDir to configure target directory --- recht.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recht.plugin.zsh b/recht.plugin.zsh index f6c2ce4..195bfc9 100644 --- a/recht.plugin.zsh +++ b/recht.plugin.zsh @@ -19,7 +19,7 @@ function recht() { return 1; fi # Generate local path and remote url - local docPath=~/"Documents/Uni/Recht/_docs/${docName}.pdf"; + local docPath="${docsDir}/${docName}.pdf"; local docUrl="${serverUrl}/${docPartUrl}.pdf"; # Download if local version not given if [ ! -e "$docPath" ]; then