Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions commands/web/spx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ off | false | disable)
disable_spx
;;
toggle)
status=$(php -m | grep 'spx')
if [ "${status}" = "spx" ]; then
status=$(php -m | grep -i 'spx')
if [ ! -z "${status}" ]; then
disable_spx
else
enable_spx
fi
;;
status)
status=$(php -m | grep 'spx')
if [ "${status}" = "spx" ]; then
status=$(php -m | grep -i 'spx')
if [ ! -z "${status}" ]; then
result="spx is enabled"
else
result="spx is disabled"
Expand Down