From 2d4e4c348ebeef3a27a24fdb34eb7a2b274b718e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 3 Nov 2024 22:37:22 +0100 Subject: [PATCH] Fix permissions issues --- scripts/lib/nix.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/nix.fish b/scripts/lib/nix.fish index 28e18ff0..d4141acb 100644 --- a/scripts/lib/nix.fish +++ b/scripts/lib/nix.fish @@ -18,12 +18,12 @@ begin if [ ! -d "$nixPkgsCache" ] downloadNixPkgs - mkdir -p "$nixPkgsDir" - cp -r "$nixPkgsCache"/* "$nixPkgsDir" + sudo mkdir -p "$nixPkgsDir" + sudo cp -r "$nixPkgsCache"/* "$nixPkgsDir" end end function uninstallNixPkgs -V nixPkgsDir - rm -rf (dirname "$nixPkgsDir") + sudo rm -rf (dirname "$nixPkgsDir") end end