From 759ef2dcf60daa4cf31d4542ad25808c1698fcf4 Mon Sep 17 00:00:00 2001 From: rasbt Date: Wed, 21 May 2014 17:49:47 -0400 Subject: [PATCH] syntax fix --- useful_scripts/prepend_python_shebang.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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