mirror of
https://github.com/openwrt/packages.git
synced 2025-07-29 20:20:19 +00:00
20 lines
319 B
Bash
20 lines
319 B
Bash
#!/bin/sh
|
|
|
|
GOT_VER=$(/usr/bin/django-admin version)
|
|
[ "$GOT_VER" = "$2" ] || {
|
|
echo "Incorrect version: expected '$2' ; obtained '$GOT_VER'"
|
|
exit 1
|
|
}
|
|
|
|
python3 - << EOF
|
|
import sys
|
|
import django
|
|
|
|
if (django.__version__) != "$GOT_VER":
|
|
print("Wrong version: " + django.__version__)
|
|
sys.exit(1)
|
|
|
|
sys.exit(0)
|
|
EOF
|
|
|