about summary refs log tree commit diff
path: root/pkgs/applications/science/misc/root/thisroot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/science/misc/root/thisroot.patch')
-rw-r--r--pkgs/applications/science/misc/root/thisroot.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/root/thisroot.patch b/pkgs/applications/science/misc/root/thisroot.patch
new file mode 100644
index 000000000000..57cd5838e64a
--- /dev/null
+++ b/pkgs/applications/science/misc/root/thisroot.patch
@@ -0,0 +1,15 @@
+diff --git a/config/thisroot.sh b/config/thisroot.sh
+index 85dee20..532cb28 100644
+--- a/config/thisroot.sh
++++ b/config/thisroot.sh
+@@ -15,8 +15,8 @@ drop_from_path()
+       return 1
+    fi
+ 
+-   p=$1
+-   drop=$2
++   local p=$1
++   local drop=$2
+ 
+    newpath=`echo $p | sed -e "s;:${drop}:;:;g" \
+                           -e "s;:${drop};;g"   \