call pre-/post-local without explicit shell

This commit is contained in:
Andreas Neue 2022-11-16 10:14:39 +01:00
parent f3847dc668
commit a401b251c1
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ pre-local:
ifneq (,$(wildcard pre-local.sh)) ifneq (,$(wildcard pre-local.sh))
@- echo "\n### running pre-local script" @- echo "\n### running pre-local script"
@- $(foreach host,$(DEPLOY_HOSTS), \ @- $(foreach host,$(DEPLOY_HOSTS), \
sh ./pre-local.sh $(host); \ ./pre-local.sh $(host); \
) )
else else
@- echo "\n### no pre-local script found" @- echo "\n### no pre-local script found"
@ -44,7 +44,7 @@ post-local:
ifneq (,$(wildcard post-local.sh)) ifneq (,$(wildcard post-local.sh))
@- echo "\n### running post-local script" @- echo "\n### running post-local script"
@- $(foreach host,$(DEPLOY_HOSTS), \ @- $(foreach host,$(DEPLOY_HOSTS), \
sh ./post-local.sh $(host); \ ./post-local.sh $(host); \
) )
else else
@- echo "\n### no post-local script found" @- echo "\n### no post-local script found"