diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/runscript.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index 8e7fa690..3b910017 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -4,6 +4,11 @@ # Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Released under the 2-clause BSD license. +dir_writable() +{ + mkdir "$1"/.test.$$ 2>/dev/null && rmdir "$1"/.test.$$ +} + sourcex() { if [ "$1" = "-e" ]; then |