From ce3353378cdb8402d8268cc4b943647f19a80779 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