Streamline generating continue file

Fixes #29
This commit is contained in:
Greg Hellings
2024-11-18 22:26:17 -06:00
parent ee831b6c48
commit 1b8a742563
4 changed files with 128 additions and 34 deletions
+8 -8
View File
@@ -11,13 +11,13 @@ writeShellApplication {
packer
];
text = ''
shopt -s globstar
if [ -e "''${PACKER_CONFIG_DIR}" ]; then
find "''${PACKER_CONFIG_DIR}" -name '*_linux_amd64' -exec chmod +x '{}' ";"
fi
packer init sources
for vars in distros/**/*.pkrvars.hcl; do
packer validate -except=upload "-var-file=''${vars}" sources/
done
shopt -s globstar
if [ -e "''${PACKER_CONFIG_DIR}" ]; then
find "''${PACKER_CONFIG_DIR}" -name '*_linux_amd64' -exec chmod +x '{}' ";"
fi
packer init sources
for vars in distros/**/*.pkrvars.hcl; do
packer validate -except=upload "-var-file=''${vars}" sources/
done
'';
}