use update script for debian on raspbian
This commit is contained in:
parent
54c7b09524
commit
0145b7684c
1 changed files with 4 additions and 1 deletions
|
|
@ -4,7 +4,10 @@
|
|||
# license: MIT
|
||||
|
||||
# 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"
|
||||
|
||||
# check if update script exists
|
||||
|
|
|
|||
Loading…
Reference in a new issue