summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscore.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/score.sh b/score.sh
index c32e002..10aa7f7 100755
--- a/score.sh
+++ b/score.sh
@@ -1,10 +1,17 @@
#!/bin/bash -x
export PATH=$(realpath -s $(dirname "$0"))/bin:"$PATH"
+proj="$1"
+shift
if [ -z "$proj" ]; then
- proj=tab2016
+ proj=test
+fi
+if [ ! -d "$proj" ]; then
+ set +x
+ echo "$0: project directory $proj missing" 1>&2
+ exit 1
fi
sdaps="sdaps $proj"
-if [ -f "$1" ]; then
+if [ $# -ne 0 ]; then
$sdaps add "$@"
fi
$sdaps recognize --identify