0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-29 20:20:19 +00:00
Files
packages/lang/python/django/test.sh
Alexandru Ardelean 75b419e96c django: bump to 5.1.4
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2024-12-25 21:33:52 +02:00

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