s/example.Xresources/Default/g

This commit is contained in:
speedie 2023-04-05 00:13:27 +02:00
parent 6d3db1c798
commit 1aea6858ba

View file

@ -66,7 +66,7 @@ list_profiles() {
profiles="$(find "${CONFDIR}/spmenu/profiles" -type f)" profiles="$(find "${CONFDIR}/spmenu/profiles" -type f)"
profilec="$(find "${CONFDIR}/spmenu/profiles" -type f | wc -l)" profilec="$(find "${CONFDIR}/spmenu/profiles" -type f | wc -l)"
[ "$1" != "noopts" ] && [ -f "${CONFDIR}/spmenu/.profile" ] && printf "\033[1;33m%s\n" "Current profile: $(basename "$(cat "${CONFDIR}/spmenu/.profile")")" | sed "s/spmenurc/Default/g; s/NONE/None/g" [ "$1" != "noopts" ] && [ -f "${CONFDIR}/spmenu/.profile" ] && printf "\033[1;33m%s\n" "Current profile: $(basename "$(cat "${CONFDIR}/spmenu/.profile")")" | sed "s/spmenurc/Default/g; s/NONE/None/g; s/example.Xresources/Default/g"
for i in $(seq "$profilec"); do for i in $(seq "$profilec"); do
curprofile="$(basename "$(printf "%s" "$profiles" | sed "${i}q;d")")" curprofile="$(basename "$(printf "%s" "$profiles" | sed "${i}q;d")")"