1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-08-12 00:54:27 +02:00
Files
cadmus/bin/00TODOConfig.sh
2020-07-25 11:59:28 +10:00

16 lines
318 B
Bash

#!/usr/bin/env bash
set -euo pipefail
conlook () {
if [[ -f ./.config.json ]]; then
CONFIG="./config.json"
return
elif [[ CONFIG == "" ]]
if [[ "$(pwd)" == "/" ]]; then
CONFIG="~/.config/cadmus/config.json"
else
cd ..
fi
conlook
}