[Linux] Fix rofi_systemd.sh

This commit is contained in:
Ivan Malison 2017-03-10 14:30:04 -08:00
parent b535ae1d4f
commit 11d7d7bc3c
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env zsh
export SYSTEMD_COLORS=0
@ -42,8 +42,8 @@ function select_service_and_act {
;;
esac
service_name="$(printf $selection | get_cols 1 | tr -d ' ')"
is_user="$(printf $selection | get_cols 3)"
service_name="$(printf $selection | awk '{ print $1 }' | tr -d ' ')"
is_user="$(printf $selection | awk '{ print $3 }' )"
case "$is_user" in
user*)