From 6cdc7243b69c8c735822d29bc3526a975f230ed3 Mon Sep 17 00:00:00 2001 From: eik Date: Sat, 17 Jul 2004 15:52:46 +0000 Subject: create /var/db/options when it doesn't exist --- ports-mgmt/portmk/scripts/options.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ports-mgmt') diff --git a/ports-mgmt/portmk/scripts/options.sh b/ports-mgmt/portmk/scripts/options.sh index b8aa38349e8f..ce3115e5d72a 100644 --- a/ports-mgmt/portmk/scripts/options.sh +++ b/ports-mgmt/portmk/scripts/options.sh @@ -153,6 +153,12 @@ do_edit() { local rc + OPTIONS_DIR="${OPTIONS_FILE%/*}" + if [ ! -d "$OPTIONS_DIR" ] && ! $MKDIR "$OPTIONS_DIR"; then + echo ">> config: Can't create $OPTIONS_DIR." 2>&1 + return 1 + fi + if [ -n "$OPTIONS_OVERRIDE" ]; then OVERRIDE="$OPTIONS_DEFAULT" elif [ "$CURDIR" != `$REALPATH "$MASTERDIR"` ]; then -- cgit