apt: deb822 migration python script is looked relative to shell script

This commit is contained in:
Jérémy Lecour 2023-03-16 21:36:13 +01:00 committed by Jérémy Lecour
parent b7dea8d456
commit be03dfcb08
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
minifirewall: support protocols in numeric form
* apt: deb822 migration python script is looked relative to shell script
* minifirewall: support protocols in numeric form
### Fixed

View File

@ -3,7 +3,7 @@
deb822_migrate_script=$(command -v deb822-migration.py)
if [ -z "${deb822_migrate_script}" ]; then
deb822_migrate_script="./deb822-migration.py"
deb822_migrate_script="$(dirname "$0")/deb822-migration.py"
fi
if [ ! -x "${deb822_migrate_script}" ]; then
>&2 echo "ERROR: '${deb822_migrate_script}' not found or not executable"