Skip to content

Commit

Permalink
Updating conditional to use double brackets
Browse files Browse the repository at this point in the history
Wrapping the conditional in a extra bracket to extend regular []
and for other shell support.

[OF6-852]

Change-Id: I4a2983e624c228247c4207c453f206e5aacdc92b
Reviewed-on: https://code.brigade.zone/27649
Reviewed-by: Ahmad Wilson <[email protected]>
Tested-by: Leeroy Jenkins <[email protected]>
  • Loading branch information
dariusp-brigade committed Jan 30, 2018
1 parent 2e78abc commit 0614f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dock/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if [ -n "${ARCANUS_PASSWORD}" || -f "/src/.arcanus/unprotected.key" ]; then
if [[ -n "${ARCANUS_PASSWORD}" || -f "/src/.arcanus/unprotected.key" ]]; then
eval "$(arcanus export --shell)"
fi

Expand Down

0 comments on commit 0614f36

Please sign in to comment.