use update script for debian on raspbian

This commit is contained in:
Daniel Sommer 2025-01-29 10:38:40 +01:00
parent 54c7b09524
commit 0145b7684c

View file

@ -4,7 +4,10 @@
# license: MIT # license: MIT
# get distro and update script path # get distro and update script path
distro="$(grep "^ID" /etc/*release | cut -d "=" -f2)" distro="$(grep "^ID=" /etc/*release | cut -d "=" -f2)"
if [[ "$distro" == "raspbian" ]]; then
distro="debian"
fi
script="$(dirname $(realpath $0))/$distro.sh" script="$(dirname $(realpath $0))/$distro.sh"
# check if update script exists # check if update script exists