Skip to content

Commit 971628e

Browse files
committed
[skip ci] [Pustaka Script] i forgot it uses pure sh
1 parent b52401e commit 971628e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/pustaka.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ update_region() {
6666
$program "$region" "$pustaka_dir" "$json" $2 $3 $4
6767

6868
# Check if there are any staged or unstaged changes
69-
if [[ -n $(git status --porcelain) ]]; then
69+
if [ "$(git status --porcelain)" != "" ]; then
7070
echo "Changes detected for $region!"
7171
git add .
7272
git commit -m "Update pustaka for $region @$timestamp"
@@ -78,7 +78,6 @@ update_region() {
7878
echo
7979
}
8080

81-
8281
# Update all regions
8382
update_region "Hi3SEA" "" "" ""
8483
update_region "Hi3Global" "" "" ""

0 commit comments

Comments
 (0)