Update rsync-local-config function
Ignore any .git* contents when syncing Set rw permissions for all files before attempting to patch nix paths
This commit is contained in:
parent
4582485ed7
commit
1ad915006d
|
@ -222,9 +222,10 @@
|
||||||
TMP_SOURCE=$TMP_SOURCE/
|
TMP_SOURCE=$TMP_SOURCE/
|
||||||
NIX_REPLACE="${pkgs.fd}/bin/fd -g '**' $TMP_TARGET -tfile -x $NIX_SED {};"
|
NIX_REPLACE="${pkgs.fd}/bin/fd -g '**' $TMP_TARGET -tfile -x $NIX_SED {};"
|
||||||
fi
|
fi
|
||||||
${pkgs.rsync}/bin/rsync -avzL $SOURCE /tmp/config-$TARGET
|
${pkgs.rsync}/bin/rsync -avzL --exclude=".git*" $SOURCE /tmp/config-$TARGET
|
||||||
|
${pkgs.coreutils}/bin/chmod u+rw -R $TMP_SOURCE
|
||||||
${pkgs.bash}/bin/sh -c "$NIX_REPLACE"
|
${pkgs.bash}/bin/sh -c "$NIX_REPLACE"
|
||||||
${pkgs.rsync}/bin/rsync -avzL $TMP_SOURCE $HOST:.config/$TARGET
|
${pkgs.rsync}/bin/rsync -avzL --exclude=".git*" $TMP_SOURCE $HOST:.config/$TARGET
|
||||||
${pkgs.coreutils}/bin/rm -rf $TMP_SOURCE
|
${pkgs.coreutils}/bin/rm -rf $TMP_SOURCE
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue