exclude dot files when extracting top-level flake

This commit is contained in:
Alexander Tomokhov 2023-11-21 00:57:54 +04:00
parent 73b5863968
commit bc0f59695c

View file

@ -107,7 +107,8 @@ echo '// { users.users.root.hashedPassword = "$6$I8xOgBRfitytj331$WZzyJbABCY8LZ4
setupConf() { setupConf() {
mkdir -p ${LOCAL_FLAKE_DIR} mkdir -p ${LOCAL_FLAKE_DIR}
if ! curl "${CONFIG_URL}" | tar -xz -C ${LOCAL_FLAKE_DIR} --strip-components=1 if ! curl "${CONFIG_URL}" \
| tar -xz -C ${LOCAL_FLAKE_DIR} --strip-components=1 --exclude=".*"
then then
echo "Error downloading/extracting top level flake configuration!" echo "Error downloading/extracting top level flake configuration!"
exit 1 exit 1