Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 759ef2d

Browse files
committed
syntax fix
1 parent f71bcde commit 759ef2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

useful_scripts/prepend_python_shebang.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99

1010
# prepends !#/usr/bin/python to all .py files
1111

12-
python_ver=$(which python)
1312
find ./ -maxdepth 1 -name "*.py" -exec sed -i.bak '1i\
14-
#!/usr/bin/env/python"$python_ver"
13+
#!'"$(which python)"'
1514
' {} \;
1615

1716
# removes temporary files

0 commit comments

Comments
 (0)