aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-11-09 12:57:50 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-11-09 12:57:50 +0300
commite31c53797383b1f978cd3aa21d8ba76f168c9829 (patch)
tree8267819b1db817365b4df534c5520debab09cde5 /scripts
parent0fd2c5ce4493b1e5592194ac6117f05f28c2d6a6 (diff)
downloadUEFI-Lessons-e31c53797383b1f978cd3aa21d8ba76f168c9829.tar.gz
UEFI-Lessons-e31c53797383b1f978cd3aa21d8ba76f168c9829.tar.bz2
UEFI-Lessons-e31c53797383b1f978cd3aa21d8ba76f168c9829.zip
Add possibility to set folder in 'addLicense.sh'
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/addLicense.sh6
1 files changed, 5 insertions, 1 deletions
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}