summaryrefslogtreecommitdiff
path: root/localmarkdown2sms
diff options
context:
space:
mode:
authorroot <root@jones.dk>2009-10-26 10:24:07 +0100
committerroot <root@jones.dk>2009-10-26 10:24:07 +0100
commit3287001c6fe552cd190bdfcbe35b4a6670647a78 (patch)
treef058a667bfcbf1cc41fa1f226f5b0770e0708fe8 /localmarkdown2sms
parente3f7693b7ba8ccb030a4044e81872136c4581b82 (diff)
Fix check env flag mdpath (it is a directory, not a file).
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-xlocalmarkdown2sms2
1 files changed, 1 insertions, 1 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms
index be74724..896b34f 100755
--- a/localmarkdown2sms
+++ b/localmarkdown2sms
@@ -69,7 +69,7 @@ if ($debug) {
Log::Log4perl->easy_init($ERROR);
}
-unless ($path and -f $path) {
+unless ($path and -d $path) {
ERROR "environment variable \"mdpath\" missing or wrong.";
exit 1;
}