Skip to content

Commit d2f9864

Browse files
authored
fix installation issue for Mint Linux (#31)
Signed-off-by: Tiger Wang <[email protected]>
1 parent 9209c47 commit d2f9864

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build/scripts/setup/script.d/01-setup-gateway.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ __get_setup_script_directory_by_os_release() {
1919
} || {
2020
pushd "${ID}" >/dev/null
2121
} || {
22-
pushd "${ID_LIKE}" >/dev/null
22+
[[ -n ${ID_LIKE} ]] && for ID in ${ID_LIKE}; do
23+
pushd "${ID}" >/dev/null && break
24+
done
2325
} || {
2426
echo "Unsupported OS: ${ID} ${VERSION_CODENAME} (${ID_LIKE})"
2527
exit 1

build/sysroot/usr/share/casaos/cleanup/script.d/01-cleanup-gateway.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ __get_setup_script_directory_by_os_release() {
1616
} || {
1717
pushd "${ID}" &>/dev/null
1818
} || {
19-
pushd "${ID_LIKE}" &>/dev/null
19+
[[ -n ${ID_LIKE} ]] && for ID in ${ID_LIKE}; do
20+
pushd "${ID}" >/dev/null && break
21+
done
2022
} || {
2123
echo "Unsupported OS: ${ID} ${VERSION_CODENAME} (${ID_LIKE})"
2224
exit 1

0 commit comments

Comments
 (0)