Skip to content

Commit

Permalink
v6.26
Browse files Browse the repository at this point in the history
+ DietPi-Services | Fix non-INPUT_SERVICE regression, since ${var+0} == "0" even if an empty string is assigned to $var
  • Loading branch information
MichaIng authored Aug 25, 2019
1 parent d3551ff commit 2738685
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dietpi/dietpi-services
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ Available services:

# Grab Inputs
INPUT_CMD=$1
INPUT_SERVICE=$2
# - pre-v6.25 compatibility
[[ $INPUT_SERVICE == 'all' ]] && unset INPUT_SERVICE
# - pre-v6.25 compatibility: all => <empty>
[[ $2 && $2 != 'all' ]] && INPUT_SERVICE=$2

# - Optional env vars to prevent service control
[[ $G_DIETPI_SERVICES_DISABLE == 1 ]] && exit 0
Expand Down

0 comments on commit 2738685

Please sign in to comment.