# Ensure the installation directory exists and take control of it if [ "$IS_ROOT" = true ]; then mkdir -p $IOB_DIR else sudo mkdir -p $IOB_DIR # During the installation we need to give the current user access to the install dir # On Linux, we'll fix this at the end. On OSX this is okay if [ "$platform" = "osx" ]; then sudo chown -R $USER $IOB_DIR else sudo chown -R $USER:$USER $IOB_DIR