mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
django: allow test.sh only for python3-django package
No idea how this worked before. But the '/usr/bin/django-admin' is available only for python3-django Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
52620adeed
commit
12738a8eec
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "python3-django" = "$1" ] || exit 0
|
||||
|
||||
GOT_VER=$(/usr/bin/django-admin version)
|
||||
[ "$GOT_VER" = "$2" ] || {
|
||||
echo "Incorrect version: expected '$2' ; obtained '$GOT_VER'"
|
||||
|
||||
Reference in New Issue
Block a user