Skip to content

Commit

Permalink
use sh compatible output redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
Crapworks authored May 8, 2019
1 parent c6945f8 commit 4d84fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluentd-gcp-scaler/scaler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ log() {
apply_scaling() {
# This is assuming there is a ScalingPolicy installed in the cluster.
# See https://github.com/justinsb/scaler for more details.
if ! kubectl get scalingpolicies -n ${NAMESPACE} ${SCALING_POLICY} &> /dev/null
if ! kubectl get scalingpolicies -n ${NAMESPACE} ${SCALING_POLICY} >/dev/null 2>&1
then
return
fi
Expand Down

0 comments on commit 4d84fe3

Please sign in to comment.