aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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}