Skip to content

Commit 7317b3f

Browse files
committed
Reorganize. Put the "if true" first, and the rest in "else"
1 parent 484d549 commit 7317b3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install_rms.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ current_env=$(conda info --envs | grep -v '^#' | awk '/\*/{print $1}')
7878

7979
# Ask the user to confirm RMS is being installed in the correct conda environemnt.
8080
# Skip confirmation if this is run under continuous mode.
81-
if [ "$RMS_INSTALLER" != "continuous" ]; then
81+
if [ "$RMS_INSTALLER" = "continuous" ]; then
82+
echo "Current conda environment: $current_env"
83+
else
8284
echo " Please confirm that you want to install RMS into the current conda environment: '$current_env'"
8385
echo " If this is not correct, abort and activate the correct environment before rerunning."
8486
read -p "Proceed with installation in '$current_env'? (y/N): " confirm
@@ -91,8 +93,6 @@ if [ "$RMS_INSTALLER" != "continuous" ]; then
9193
return 1
9294
;;
9395
esac
94-
else
95-
echo "Current conda environment: $current_env"
9696
fi
9797

9898
# Set environment variables for the current environment, for future uses

0 commit comments

Comments
 (0)