#!/bin/bash if [ -n "$1" ]; then chmod +x $1 git update-index --chmod=+x $1 else echo "Provide a target file to make executable" fi