#!/usr/bin/env bash
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
# --------------------------------------------------------------------------------------------
# usage: bin/detect <platform-dir> <plan-path>
set -eo pipefail

appSrcDir=`pwd`

echo "# Running 'oryx buildpack-detect \"$appSrcDir\" --platform-dir \"$1\" --plan-path \"$2\"'..."

exec oryx buildpack-detect "$appSrcDir" --platform-dir "$1" --plan-path "$2"
