bugfix, still not working

This commit is contained in:
ggodot 2025-12-31 16:58:50 +01:00
parent d2ec804aa2
commit d4987da90a

10
dist-upgrade.sh Normal file → Executable file
View File

@ -15,7 +15,10 @@
printf "What conteiner next?\n" printf "What conteiner next?\n"
read conteiner_id read conteiner_id
fun_update($conteiner_id) {
if [[ conteiner_id =~ ^[0-9]+$ ]]; then
printf "Doing my part\n"
pct enter $conteiner_id pct enter $conteiner_id
apt update -y apt update -y
@ -33,12 +36,7 @@ fun_update($conteiner_id) {
# a lot of defaluts # a lot of defaluts
exit exit
}
if [[ conteiner_id =~ ^[0-9]+$ ]]; then
printf "Doing my part\n"
fun_update($conteiner_id)
else else
printf "Sorry what?\n" printf "Sorry what?\n"
fi fi