changed directory

This commit is contained in:
John Lancaster
2024-09-21 15:07:17 +00:00
parent 4b7c1f5246
commit 65e3c65699

View File

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