diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-09 12:57:50 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-09 12:57:50 +0300 |
commit | e31c53797383b1f978cd3aa21d8ba76f168c9829 (patch) | |
tree | 8267819b1db817365b4df534c5520debab09cde5 /scripts | |
parent | 0fd2c5ce4493b1e5592194ac6117f05f28c2d6a6 (diff) | |
download | UEFI-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-x | scripts/addLicense.sh | 6 |
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} |