dotfiles/scripts/.local/share/scripts/shebang-patcher

13 lines
167 B
Bash
Executable File

#!/bin/sh
usage() {
echo "Usage: shebang-patcher <script>"
exit 1
}
if [ $# != 1 ]; then
usage
fi
sed "s/#!\/bin\/bash/#!\/usr\/bin\/env bash/" -i "$1"