Skip to content

Commit 646e342

Browse files
committed
Default to colordiff if present
1 parent 23d5180 commit 646e342

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/stack-functions

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -840,10 +840,10 @@ _bma_stack_diff_template() {
840840
if ! aws cloudformation describe-stacks --stack-name "$stack" 1>/dev/null; then
841841
return 1;
842842
fi
843-
if command -v icdiff; then
844-
local DIFF_CMD=icdiff
845-
elif command -v colordiff; then
843+
if command -v colordiff; then
846844
local DIFF_CMD=colordiff
845+
elif command -v icdiff; then
846+
local DIFF_CMD=icdiff
847847
else
848848
local DIFF_CMD=diff
849849
fi
@@ -878,10 +878,10 @@ _bma_stack_diff_params() {
878878
if [ ! -f "$params" ]; then
879879
return 1
880880
fi
881-
if command -v icdiff; then
882-
local DIFF_CMD=icdiff
883-
elif command -v colordiff; then
881+
if command -v colordiff; then
884882
local DIFF_CMD=colordiff
883+
elif command -v icdiff; then
884+
local DIFF_CMD=icdiff
885885
else
886886
local DIFF_CMD=diff
887887
fi

0 commit comments

Comments
 (0)