From 04c129b3298403371a8813dc9e26b281ca681235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliberk=20Sand=C4=B1k=C3=A7=C4=B1?= Date: Thu, 27 Oct 2022 10:49:53 +0300 Subject: [PATCH] fix(path): change `tmp_install` path --- install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 0dc91c2..5b66153 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,7 @@ #!/bin/bash # installation script -cd "$HOME" || exit +CUR_HOME=$(compgen -f -- /home/bot*) +cd "$CUR_HOME" || exit mkdir tmp_install cd tmp_install || exit sudo apt install curl -y @@ -20,7 +21,9 @@ chmod +x prerequisites.sh chmod +x applications.sh bash prerequisites.sh bash applications.sh -COMPREPLYa=$(compgen -f -- /home/bot*/.vscode/extensions) -cp -r danielpinto8zz6.c-cpp-compile-run-1.0.18 "$COMPREPLYa" +EX_PATH="$CUR_HOME"/.vscode/extensions/ +mkdir -p "$EX_PATH" +cp -r danielpinto8zz6.c-cpp-compile-run-1.0.18 "$EX_PATH" cd || exit rm -r tmp_install +echo "INSTALLATION SUCCESSFULLY COMPLETED"