tester si le fichier est exécutable bash

if [ -x file ]; then
  ./file
else
  echo "File is not executable"
fi
Alert Alligator