Skip to content

Commit 05dd9f4

Browse files
committed
[fix] : Fix unexpected script_path behaviour
When one calls the `build.sh` scripts with bash instead of the shebang
1 parent ad1c0e7 commit 05dd9f4

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ set -u
1616

1717
# Internal config
1818
# Do not change these values.
19-
script_path="$(readlink -f ${0%/*})"
19+
script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )"
2020
defaultconfig="${script_path}/default.conf"
2121
rebuild=false
2222
customized_username=false

clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
script_path="$(readlink -f ${0%/*})"
3+
script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )"
44

55
cd "${script_path}"
66
sudo make clean

fullbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
script_path="$(readlink -f ${0%/*})"
3+
script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )"
44

55
channnels=(
66
"xfce"

keyring.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
set -e
1616

17-
script_path="$(readlink -f ${0%/*})"
17+
script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )"
1818
arch=$(uname -m)
1919

2020

wizard.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
nobuild=false
66

7-
script_path="$(readlink -f ${0%/*})"
7+
script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )"
88

99
build_arch=$(uname -m)
1010

0 commit comments

Comments
 (0)