From 275da144b42592be702c708c71e866a20c84eef9 Mon Sep 17 00:00:00 2001 From: bsod-haunted <45073909+bsod-haunted@users.noreply.github.com> Date: Tue, 3 May 2022 14:34:22 +0200 Subject: [PATCH] Make sure $workdir exists Just re-run the script on a clean Debian install for testing and noticed, that the $workdir never automaticly get's created. --- joplin.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/joplin.sh b/joplin.sh index a4ded31..489a2c4 100644 --- a/joplin.sh +++ b/joplin.sh @@ -37,6 +37,11 @@ checkout_latest(){ } build(){ + if [ ! -d "$WORKDIR" ]; then + mkdir -p $WORKDIR + echo "created " $WORKDIR + fi + cd $WORKDIR COPY .yarn/plugins ./.yarn/plugins COPY .yarn/releases ./.yarn/releases