mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-12 00:54:27 +02:00
16 lines
318 B
Bash
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
|
|
}
|