From cdd82136e04f07d813754c538cb72f99cc12f0b9 Mon Sep 17 00:00:00 2001 From: Corrado Primier Date: Wed, 4 Mar 2020 23:49:52 +0000 Subject: [PATCH] Can't use realpath on something that does not exist yet --- bin/scriptamanent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/scriptamanent b/bin/scriptamanent index 4d11501..f2b64b8 100755 --- a/bin/scriptamanent +++ b/bin/scriptamanent @@ -41,7 +41,7 @@ inspice() { url="${1}" dst="${2}" if [ ! -e "${dst}" ] ; then - mkdir -p "`realpath ${dst}/..`" + mkdir -p "`echo \`realpath "${dst}"\` | sed 's|/[^/]\+/\?$|/|'`" ${git} clone "${url}" "$dst" else indica "${dst} already present, skipping"