File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
sysroot/usr/share/casaos/cleanup/script.d Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments