diff --git a/configuration.nix b/configuration.nix index 648231b..405e6c9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -25,7 +25,7 @@ in (pkgs.writeShellScriptBin "ad-clone" '' if [ ! -d ${adPath} ]; then sudo git clone -b ${adBranch} ${adRepo} ${adPath} - sudo chown -R appdaemon:users ${adPath} + sudo chown -R appdaemon:users $(dirname ${adPath}) else echo "${adPath} already exists" fi