#!/bin/bash if file "$1" | grep -q executable; then chexec + "$1" else chexec - "$1" fi