summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rc b/bin/rc
index e96245c..4ce2fdb 100755
--- a/bin/rc
+++ b/bin/rc
@@ -34,7 +34,7 @@ valid_session_type()
local session_type="${1}"
shift 1
- case "${session_type}" in *[!A-Za-z0-9:]* | '' | ':'* | *':')
+ case "${session_type}" in *[!A-Za-z0-9:]* | '' | ':'* | *':' | ':')
return 1
esac
return 0
@@ -49,7 +49,7 @@ run_services()
local service_script=
ret=0
- for service_script in "${XDG_CACHE_HOME:-${HOME}/.cache}/homerc/"*; do
+ for service_script in "${XDG_CONFIG_HOME:-${HOME}/.config}/homerc/"*; do
"$(dirname "${0}")/svc" "${service_script##*/}" \
"${old_sessions};${new_sessions}" || ret=1
done
@@ -284,7 +284,7 @@ main()
case "${action}" in
'start' | 'stop')
- if [ ${#} -ne 2 ] || valid_session_type \
+ if [ ${#} -ne 2 ] || ! valid_session_type \
"${session_type}"; then
usage 1>&2
return 1