Total rewrite #15

Merged
emma merged 14 commits from rewrite into main 2023-03-22 12:42:30 -06:00
Showing only changes of commit 00bd98df9a - Show all commits

View File

@ -8,13 +8,8 @@ argv0="$0"
CONFIG="$XDG_CONFIG_HOME"/xdg-sanity.toml CONFIG="$XDG_CONFIG_HOME"/xdg-sanity.toml
if ! test -e "$CONFIG"; then if ! test -e "$CONFIG"; then
touch "$CONFIG" touch "$CONFIG"
CONFIG=/etc/xdg-sanity.toml
if ! test -e "$CONFIG"; then
exit 66 # sysexits(3) EX_NOINPUT
fi
fi fi
# check if usage is valid # check if usage is valid
if ! test -n "$1"; then if ! test -n "$1"; then
printf "Usage: %s [resource...]\n" "$argv0" 1>&2 printf "Usage: %s [resource...]\n" "$argv0" 1>&2