Fix permissions issues
This commit is contained in:
parent
3466fd63e2
commit
863408f2b4
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