Added a script that links "azure-cli" executable script to $HOME/bin.

This commit is contained in:
Slawek Koszewski
2025-12-17 19:08:13 +01:00
parent c83a4f115a
commit b90a6a0746

17
link-to-bin Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/bash
#
# Make a symbolic link from the 'azure-cli' executable script
# to $HOME/bin.
#
if [ ! -d "$HOME/bin" ]; then
mkdir -p "$HOME/bin"
cat <<'EOF' >> $HOME/.bashrc
# Add $HOME/bin to the PATH variable
export PATH=$HOME/bin:$PATH
EOF
fi
# Make a link
ln -s "$(cd $(dirname ${BASH_SOURCE[0]}); pwd)/azure-cli" "$HOME/bin/azure-cli"