diff --git a/useful_scripts/prepend_python_shebang.sh b/useful_scripts/prepend_python_shebang.sh index e57cc49..20f420d 100644 --- a/useful_scripts/prepend_python_shebang.sh +++ b/useful_scripts/prepend_python_shebang.sh @@ -9,9 +9,8 @@ # prepends !#/usr/bin/python to all .py files -python_ver=$(which python) find ./ -maxdepth 1 -name "*.py" -exec sed -i.bak '1i\ -#!/usr/bin/env/python"$python_ver" +#!'"$(which python)"' ' {} \; # removes temporary files