From 0710609ce0e1b2dd8d35d78844b16480c5cbdebf Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 26 Sep 2018 09:02:52 +0200 Subject: [PATCH] ignore symlinks --- installation/patch/python2to3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/patch/python2to3.sh b/installation/patch/python2to3.sh index 1d86b0ce7..07eed0e1e 100755 --- a/installation/patch/python2to3.sh +++ b/installation/patch/python2to3.sh @@ -1,8 +1,8 @@ #! /usr/bin/env bash if [ $1x != 3to2x ]; then echo 'python2.7 to python' - find . -name '*.py' | xargs sed -i 's/usr\/bin\/env python2.7/usr\/bin\/env python/g' + find . -name '*.py' -type f | xargs sed -i 's/usr\/bin\/env python2.7/usr\/bin\/env python/g' else echo 'python to python2.7' - find . -name '*.py' | xargs sed -i 's/usr\/bin\/env python/usr\/bin\/env python2.7/g' + find . -name '*.py' -type f | xargs sed -i 's/usr\/bin\/env python/usr\/bin\/env python2.7/g' fi