diff options
author | eik <eik@FreeBSD.org> | 2004-07-17 23:52:46 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-07-17 23:52:46 +0800 |
commit | 6cdc7243b69c8c735822d29bc3526a975f230ed3 (patch) | |
tree | 9ceb6030a26b775c07d041dae204230114c13d5c /ports-mgmt | |
parent | 7dcca3d8c8bfd0a378e2d075928e9caaa434ebf8 (diff) | |
download | freebsd-ports-gnome-6cdc7243b69c8c735822d29bc3526a975f230ed3.tar.gz freebsd-ports-gnome-6cdc7243b69c8c735822d29bc3526a975f230ed3.tar.zst freebsd-ports-gnome-6cdc7243b69c8c735822d29bc3526a975f230ed3.zip |
create /var/db/options when it doesn't exist
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portmk/scripts/options.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |