Fix permissions issues
This commit is contained in:
parent
f682768800
commit
f2dd4ca628
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue