Skip to content

Commit 145dd05

Browse files
committed
fix: Fixed the zip file path on CI env
1 parent db89c63 commit 145dd05

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bin/pack

+9-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ find "$(dirname "$(find build/modules -mindepth 2 -maxdepth 3 -type f -name comp
1515

1616
cp scripts/install build/
1717

18-
MODULE_NAME="$(basename "$(pwd)")"
18+
MODULE_NAME="whmcs-module"
1919

20-
pushd build
20+
if [[ -n "$CI" ]]; then
21+
MODULE_NAME="$(basename "$(pwd)")"
22+
fi
23+
24+
pushd build > /dev/null
2125

2226
zip -qr "../$MODULE_NAME.zip" .
2327

24-
popd && rm -rf build
28+
popd > /dev/null && rm -rf build
29+
30+
printf "Created module file %s.zip\n" "$MODULE_NAME"

0 commit comments

Comments
 (0)