Skip to content

Commit

Permalink
local: skip task if no local script
Browse files Browse the repository at this point in the history
  • Loading branch information
semseysandor committed Mar 1, 2024
1 parent 659819e commit 3600df0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/customize/other/local
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
_run() {
local selector="${1:?Selector missing}"
local cfg_dir="${2:?Config dir missing}"
local scripts

scripts=$(run-parts --test "${cfg_dir}")
if [[ -z "${scripts}" ]]; then
return 0
fi

print-header Run local scripts "[${selector}]..."
(
Expand Down

0 comments on commit 3600df0

Please sign in to comment.