From c4b41872e9b500c3a5cf1b51231b730ef1a49650 Mon Sep 17 00:00:00 2001 From: Tan Nguyen <35853002+tanhongit@users.noreply.github.com> Date: Fri, 3 Nov 2023 08:57:30 +0700 Subject: [PATCH] Update install.sh Fix the path when install composer --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 16662a6..9cf4c58 100644 --- a/install.sh +++ b/install.sh @@ -12,7 +12,7 @@ json_files=( for file in "${json_files[@]}"; do if [ ! -f "storage/json/tgn/$file" ]; then - cp "./config/jsons/$file" "storage/json/tgn/$file" + cp "$(dirname "$0")/config/jsons/$file" "storage/json/tgn/$file" echo "Created storage/json/tgn/$file" fi done