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

13 lines
167 B
Plaintext
Raw Normal View History

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