From e31c53797383b1f978cd3aa21d8ba76f168c9829 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Tue, 9 Nov 2021 12:57:50 +0300 Subject: Add possibility to set folder in 'addLicense.sh' Signed-off-by: Konstantin Aladyshev --- scripts/addLicense.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/addLicense.sh b/scripts/addLicense.sh index 890a2d2..8fccf7f 100755 --- a/scripts/addLicense.sh +++ b/scripts/addLicense.sh @@ -28,7 +28,11 @@ COPYRIGHT_META="\ ## " -DIR="$(dirname $(dirname "$(readlink -f "$0")"))" +if [ ! -z "$1" ]; then + DIR="$(readlink -f "$1")" +else + DIR="$(dirname $(dirname "$(readlink -f "$0")"))" +fi function insertCopyright { FILENAME=${1} -- cgit v1.2.3-18-g5258