merge: repair the workflow YAML
This commit is contained in:
@@ -176,19 +176,11 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "APK: $APK ($(wc -c < "$APK") bytes)"
|
echo "APK: $APK ($(wc -c < "$APK") bytes)"
|
||||||
|
|
||||||
if command -v unzip >/dev/null 2>&1; then
|
if ! command -v unzip >/dev/null 2>&1; then
|
||||||
LISTADO=$(unzip -Z1 "$APK")
|
echo "unzip no esta disponible: no se puede inspeccionar el APK."
|
||||||
elif command -v python3 >/dev/null 2>&1; then
|
|
||||||
LISTADO=$(python3 - "$APK" <<'PYZIP'
|
|
||||||
import zipfile, sys
|
|
||||||
for nombre in zipfile.ZipFile(sys.argv[1]).namelist():
|
|
||||||
print(nombre)
|
|
||||||
PYZIP
|
|
||||||
)
|
|
||||||
else
|
|
||||||
echo "Ni unzip ni python3 disponibles: no se puede inspeccionar el APK."
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
LISTADO=$(unzip -Z1 "$APK")
|
||||||
|
|
||||||
if [ -z "$LISTADO" ]; then
|
if [ -z "$LISTADO" ]; then
|
||||||
echo "El listado del APK salio vacio; la inspeccion no es fiable."
|
echo "El listado del APK salio vacio; la inspeccion no es fiable."
|
||||||
|
|||||||
Reference in New Issue
Block a user