1
0
This commit is contained in:
dtb 2022-11-03 00:34:50 -04:00
parent bcc6b0d3ac
commit caf635d96f

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
str isvalue "$XDG_CONFIG_HOME" \ str isvalue "$PIGPEN" \
&& printf "%s\n" "$XDG_CONFIG_HOME" && exit 0 \ && printf "%s\n" "$PIGPEN"
|| printf "%s/.pigpen" "$HOME" && exit 0 \ && exit 0 \
|| str isvalue "$XDG_CONFIG_HOME" \
&& printf "%s\n" "$XDG_CONFIG_HOME"
&& exit 0 \
|| printf "%s/.pigpen" "$HOME" # single-user is /.pigpen
&& exit 0 \
|| exit 1 || exit 1