Files
coredesktop/migrations/1793277330.sh
T
2026-10-29 06:36:51 -06:00

13 lines
457 B
Bash

#!/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"