File tree 2 files changed +6
-2
lines changed
sysroot/usr/share/casaos/cleanup/script.d
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ __get_setup_script_directory_by_os_release() {
18
18
} || {
19
19
pushd " ${ID} " > /dev/null
20
20
} || {
21
- pushd " ${ID_LIKE} " > /dev/null
21
+ [[ -n ${ID_LIKE} ]] && for ID in ${ID_LIKE} ; do
22
+ pushd " ${ID} " > /dev/null && break
23
+ done
22
24
} || {
23
25
echo " Unsupported OS: ${ID} ${VERSION_CODENAME} (${ID_LIKE} )"
24
26
exit 1
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ __get_setup_script_directory_by_os_release() {
26
26
} || {
27
27
pushd " ${ID} " & > /dev/null
28
28
} || {
29
- pushd " ${ID_LIKE} " & > /dev/null
29
+ [[ -n ${ID_LIKE} ]] && for ID in ${ID_LIKE} ; do
30
+ pushd " ${ID} " > /dev/null && break
31
+ done
30
32
} || {
31
33
echo " Unsupported OS: ${ID} ${VERSION_CODENAME} (${ID_LIKE} )"
32
34
exit 1
You can’t perform that action at this time.
0 commit comments