1
0
mirror of https://github.com/shirou/mqttcli.git synced 2025-04-24 13:48:57 +08:00

install.sh - create install directory if it doesn't exist

This commit is contained in:
dos65 2018-08-15 14:55:26 +03:00
parent 8071391f74
commit ea54ab7334

View File

@ -90,6 +90,11 @@ initOS() {
initArch
initOS
if [ ! -d $INSTALL_DIRECTORY ]
then
mkdir -p $INSTALL_DIRECTORY
fi
# determine install directory if required
echo "Will install into $INSTALL_DIRECTORY"
@ -124,4 +129,4 @@ if [ "$OS" = "windows" ]; then
fi
echo "Moving executable to $INSTALL_DIRECTORY/$INSTALL_NAME"
mv "$DOWNLOAD_FILE" "$INSTALL_DIRECTORY/$INSTALL_NAME"
mv "$DOWNLOAD_FILE" "$INSTALL_DIRECTORY/$INSTALL_NAME"