OSDN Git Service

[fix] : Fixed getting directory
authorhayao <shun819.mail@gmail.com>
Sat, 26 Sep 2020 02:37:26 +0000 (11:37 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 26 Sep 2020 02:37:26 +0000 (11:37 +0900)
tools/docker-build.sh
tools/fullbuild.sh
tools/keyring.sh
tools/wizard.sh

index 2c8ca3b..82f148f 100755 (executable)
@@ -11,7 +11,7 @@ if ! type docker >/dev/null 2>&1; then
     exit 1
 fi
 
-script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )/.."
+script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && cd .. && pwd )"
 cd $SCRIPT_DIR
 docker build -t alterlinux-build:latest .
 docker run -e _DOCKER=true -t -i --privileged -v $SCRIPT_DIR/out:/alterlinux/out -v /usr/lib/modules:/usr/lib/modules:ro alterlinux-build
index 6b4af6e..76747e7 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )/.."
+script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && cd .. && pwd )"
 
 channnels=(
     "xfce"
index e6e4033..adf38a0 100755 (executable)
@@ -14,7 +14,7 @@
 
 set -e
 
-script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )/.."
+script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && cd .. && pwd )"
 arch="$(uname -m)"
 
 
index fccdc92..32c75e2 100755 (executable)
@@ -14,7 +14,7 @@ set -e
 
 
 nobuild=false
-script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )/.."
+script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && cd .. && pwd )"
 
 machine_arch="$(uname -m)"