#!/bin/bash

echo "execute" >  test.txt

chmod -x test.txt
ls -l test.txt
if [ -x test.txt ]; then
  echo "EXECUTE OK"
else
  echo "EXECUTE NG"
fi

chmod +x test.txt
ls -l test.txt
if [ -x test.txt ]; then
  echo "EXECUTE OK"
else
  echo "EXECUTE NG"
fi

rm test.txt
