From 11d7d7bc3c67ee02cfffb3521774f444782cbc5a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 10 Mar 2017 14:30:04 -0800 Subject: [PATCH] [Linux] Fix rofi_systemd.sh --- dotfiles/lib/bin/rofi_systemd.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/lib/bin/rofi_systemd.sh b/dotfiles/lib/bin/rofi_systemd.sh index 721fc989..d692e2d0 100755 --- a/dotfiles/lib/bin/rofi_systemd.sh +++ b/dotfiles/lib/bin/rofi_systemd.sh @@ -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*)