Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down