Guard running of the find command
This commit is contained in:
+3
-1
@@ -12,7 +12,9 @@ writeShellApplication {
|
|||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
find "''${PACKER_CONFIG_DIR}" -name '*_linux_amd64' -exec chmod +x '{}' ";"
|
if [ -e "''${PACKER_CONFIG_DIR}" ]; then
|
||||||
|
find "''${PACKER_CONFIG_DIR}" -name '*_linux_amd64' -exec chmod +x '{}' ";"
|
||||||
|
fi
|
||||||
packer init sources
|
packer init sources
|
||||||
for vars in distros/**/*.pkrvars.hcl; do
|
for vars in distros/**/*.pkrvars.hcl; do
|
||||||
packer validate -except=upload "-var-file=''${vars}" sources/
|
packer validate -except=upload "-var-file=''${vars}" sources/
|
||||||
|
|||||||
Reference in New Issue
Block a user