Skip to content

Commit c8b6a1c

Browse files
authored
fix installation issue for Mint Linux (#881)
Signed-off-by: Tiger Wang <[email protected]>
1 parent 827fba2 commit c8b6a1c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build/scripts/setup/script.d/03-setup-casaos.sh

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

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ __get_setup_script_directory_by_os_release() {
2626
} || {
2727
pushd "${ID}" &>/dev/null
2828
} || {
29-
pushd "${ID_LIKE}" &>/dev/null
29+
[[ -n ${ID_LIKE} ]] && for ID in ${ID_LIKE}; do
30+
pushd "${ID}" >/dev/null && break
31+
done
3032
} || {
3133
echo "Unsupported OS: ${ID} ${VERSION_CODENAME} (${ID_LIKE})"
3234
exit 1

0 commit comments

Comments
 (0)