improvements to configure
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# configure can set up more than one Core, each in cores/<domain>.conf;
|
||||
# core.conf stays as the main Core's
|
||||
CORE_CONF="$HOME/.config/coredesktop/core.conf"
|
||||
CORES_DIR="$HOME/.config/coredesktop/cores"
|
||||
|
||||
[ -f "$CORE_CONF" ] || exit 0
|
||||
CORE_DOMAIN="$(source "$CORE_CONF" && echo "$CORE_DOMAIN")"
|
||||
[ -n "$CORE_DOMAIN" ] || exit 0
|
||||
mkdir -p "$CORES_DIR" || exit 1
|
||||
[ -f "$CORES_DIR/$CORE_DOMAIN.conf" ] || cp "$CORE_CONF" "$CORES_DIR/$CORE_DOMAIN.conf"
|
||||
Reference in New Issue
Block a user