From c35954700827ac0eb3b8ff02225ee3d40890bc0a Mon Sep 17 00:00:00 2001 From: marconetto Date: Fri, 14 Jul 2023 11:23:09 -0700 Subject: [PATCH] Add output messages in install.sh (i) test az cli exists (ii) add output messages on components installed --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index c1457b7b6..8e0bc8f63 100755 --- a/install.sh +++ b/install.sh @@ -5,6 +5,12 @@ if [ ! -d "$DIR/bin" ]; then mkdir $DIR/bin fi +if ! command -v az &> /dev/null +then + echo "azure CLI not installed. Cannot continue" + exit +fi + export PATH=${DIR}/bin:$PATH export azhpc_dir=$DIR export azhpc_pypath=$(az --version | grep "Python location" | cut -d' ' -f3 | sed "s/'//g") @@ -17,6 +23,7 @@ for cmd in "" build connect destroy run_install get init preprocess run scp stat cmd_name=azhpc cmd_launch=azhpc.py else + echo "installing $cmd" cmd_name=azhpc-$cmd cmd_launch="azhpc.py $cmd" fi