修正 install_pkg 的返回值
This commit is contained in:
parent
b617858c89
commit
6164b0c301
@ -291,7 +291,8 @@ install_pkg() {
|
|||||||
pacman -Syu --noconfirm $pkgs ||
|
pacman -Syu --noconfirm $pkgs ||
|
||||||
apk add $pkgs
|
apk add $pkgs
|
||||||
} 2>/dev/null
|
} 2>/dev/null
|
||||||
break
|
# break 返回值始终为 0
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user