Skip to content

Commit c4dd1be

Browse files
committed
fix(ci): handle empty args in zpmod installer
1 parent 582b281 commit c4dd1be

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

public/checksum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
5d8fdd881b84548f38c1d5ffc6d5f46a18919d8dd6c1398d69abe055dd76ef98 public/sh/install_zpmod.sh
1+
348b78e992d28ecebd23940d06944629ef7f8f9d93c17ef3469cd6eebd288451 public/sh/install_zpmod.sh
22
7408a1045f330a6e73bda55c6c7b48be7873a4e7f1fb00d7db989827cc9224a9 public/sh/install.sh
33
f8519bf7e3e42ad67cc9cff6d82a8367641611fc687b2f6793e26bd55dbbb553 public/sh/sync-init.sh
44
98f54a779985719e390b3e4559b7b0ac22101caac91d0569d41cd9229a05c6de public/zsh/init.zsh

public/sh/install_zpmod.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,20 @@ MAIN() {
124124
col_info2=""
125125
col_rst=""
126126

127-
setup_environment "$@"
128-
setup_zpmod_repository "$@"
129-
build_zpmod_module "$@"
127+
if [ "$#" -gt 0 ]; then
128+
setup_environment "$@"
129+
setup_zpmod_repository "$@"
130+
build_zpmod_module "$@"
131+
else
132+
setup_environment
133+
setup_zpmod_repository
134+
build_zpmod_module
135+
fi
130136
exit 0
131137
}
132138

133-
MAIN "${@}"
139+
if [ "$#" -gt 0 ]; then
140+
MAIN "$@"
141+
else
142+
MAIN
143+
fi

0 commit comments

Comments
 (0)