Skip to content

Commit 6380465

Browse files
committed
Fix if-condition considering boolean value
1 parent e820b42 commit 6380465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scripts/php.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if ! chown -R "$USER": . 2>/dev/null; then
5656
fi
5757

5858
# If applicable, print permissions adjustment error and exit
59-
if [ -n "$CHOWN_ERROR" = true ]; then
59+
if [ "$CHOWN_ERROR" = true ]; then
6060
echo -e "${BOLD}Failed to adjust permissions.${NC}"
6161
echo -e "${BOLD}You can still try running the application. It might work without adjusted permissions.${NC}"
6262
exit 2

0 commit comments

Comments
 (0)