deploy-scripts: fix python call

This commit is contained in:
Franziska Kunsmann 2024-03-24 14:52:06 +01:00
parent 250182e48f
commit afa3e3208a
No known key found for this signature in database
GPG key ID: 12E3D2136B818350
2 changed files with 4 additions and 4 deletions

View file

@ -1,12 +1,12 @@
#!/usr/bin/env bash
if [ "$1" != '--without-validation' ]; then
for cmd in find xargs php git; do
for cmd in find xargs php git python3; do
command -v $cmd >/dev/null 2>&1 || { echo >&2 "I require $cmd but it's not installed. Aborting."; exit 1; }
done
find . -name "*.php" | grep -v archive | xargs -n1 php -l
find configs/conferences/ -name "*.json" | xargs -n1 python -m json.tool > /dev/null
find configs/conferences/ -name "*.json" | xargs -n1 python3 -m json.tool > /dev/null
if [ $? -ne 0 ]; then
echo "not deploying b0rken code ;)"
exit 1

View file

@ -1,12 +1,12 @@
#!/usr/bin/env bash
if [ "$1" != '--without-validation' ]; then
for cmd in find xargs php git; do
for cmd in find xargs php git python3; do
command -v $cmd >/dev/null 2>&1 || { echo >&2 "I require $cmd but it's not installed. Aborting."; exit 1; }
done
find . -name "*.php" | grep -v archive | xargs -n1 php -l
find configs/conferences/ -name "*.json" | xargs -n1 python -m json.tool > /dev/null
find configs/conferences/ -name "*.json" | xargs -n1 python3 -m json.tool > /dev/null
if [ $? -ne 0 ]; then
echo "not deploying b0rken code ;)"
exit 1