mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
9434ec5441
1) s/envHook/postHook/ 2) patch to not set $p that fixes nested ```nix-shell -p root``` calls
16 lines
349 B
Diff
16 lines
349 B
Diff
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" \
|