summaryrefslogtreecommitdiff
path: root/script-checker
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-05 19:31:08 +0100
committerHaru <haru@dotalux.com>2013-11-05 19:35:27 +0100
commit285296a2c748533a85d07589687f6ccdc2d94613 (patch)
tree9f32b736ed7b1cea6356932627de04445d4f0974 /script-checker
parent97001710c06ed7053d18c8baaac602eb563b64b3 (diff)
downloadhercules-285296a2c748533a85d07589687f6ccdc2d94613.tar.gz
hercules-285296a2c748533a85d07589687f6ccdc2d94613.tar.bz2
hercules-285296a2c748533a85d07589687f6ccdc2d94613.tar.xz
hercules-285296a2c748533a85d07589687f6ccdc2d94613.zip
Follow-up to 97001710c06ed7053d18c8baaac602eb563b64b3
- Added missing license note and error message to the script-checker bash script - Added Script-Checker.applescript. Open in Applescript Editor and save as .app bundle in order to use it. It's not pretty, but it works. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'script-checker')
-rwxr-xr-xscript-checker7
1 files changed, 7 insertions, 0 deletions
diff --git a/script-checker b/script-checker
index ec79fcc61..521cf9025 100755
--- a/script-checker
+++ b/script-checker
@@ -1,11 +1,18 @@
#!/bin/bash
+# Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+# See the LICENSE file
+# Base Author: Haru @ http://hercules.ws
+
ORIG_CWD="$(pwd)"
BASEDIR="$(dirname "$0")"
EXECUTABLE="./map-server"
cd "${BASEDIR}"
if [ -z "$1" ]; then
+ echo "No file specified."
+ echo "Usage: $0 <path to the script>"
+ echo " (you may use a relative or absolute path)"
exit -1
elif [[ "$1" =~ ^\/ ]]; then
FILE="$1"