#!/bin/sh
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.


if [ ! -L $0 ]; then
	# if path is not a symlink, find relatively
	DEVSKIM_PATH="$(dirname $0)/.."
else
	if which readlink >/dev/null; then
		# if readlink exists, follow the symlink and find relatively
		DEVSKIM_PATH="$(dirname $(readlink -f $0))/.."
	else
		# else use the standard install location
		DEVSKIM_PATH=/usr/share/devskim
	fi
fi

exec $DEVSKIM_PATH/lib/devskim "$@"
exit $?
