Skip to content

Commit 4142c31

Browse files
committed
Fix missing conditional binary operator
1 parent 103e6e5 commit 4142c31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ push:
8282
@git diff -I'^"POT-Creation-Date: ' --numstat *.po **/*.po \
8383
| cut -f3 | xargs -r git add
8484
@git add $(git ls-files -o --exclude-standard *.po **/*.po) .tx/config
85-
@if [[ $(git diff --name-only --cached) != "" ]]; then
85+
@if [ -n "$(git diff --name-only --cached)" ]; then
8686
git commit -m $(MSG)
8787
git push
8888
else
@@ -249,7 +249,7 @@ $(BUGFIXBRANCH) $(OLDERBRANCHES):
249249
$(VENV_DIR)/bin/pomerge $(OVERWRITEFLAG) --to-files *.po **/*.po; \
250250
$(VENV_DIR)/bin/powrap --modified *.po **/*.po; \
251251
git add -u; \
252-
if [[ $(git diff --name-only --cached) != "" ]]; then \
252+
if [ -n "$(git diff --name-only --cached)" ]; then \
253253
git commit -m $(MSG); \
254254
git push; \
255255
else \

0 commit comments

Comments
 (0)