#!/bin/bash

# get script path
pushd . > /dev/null
SCRIPT_PATH="${BASH_SOURCE[0]}";
  while([ -h "${SCRIPT_PATH}" ]) do
    cd "`dirname "${SCRIPT_PATH}"`"
    SCRIPT_PATH="$(readlink "`basename "${SCRIPT_PATH}"`")";
  done
cd "`dirname "${SCRIPT_PATH}"`" > /dev/null
SCRIPT_PATH="`pwd`"
popd  > /dev/null

# check jar in SDK installation
BIN_DIR_PATH="${SCRIPT_PATH}/../../.."
if [ -e "${BIN_DIR_PATH}/package-manager-uninstaller.bin" ]
then
        echo "package-manager-uninstaller.bin exists"
        cd "${BIN_DIR_PATH}"
        ./package-manager-uninstaller.bin
else
        exit 1
fi
