[Linux] Properly handle multiple spaces from column in rofi_systemd

This commit is contained in:
Ivan Malison 2017-03-14 13:08:34 -07:00
parent 567ddee02d
commit 8d3e6e27fa
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env zsh
export SYSTEMD_COLORS=0 export SYSTEMD_COLORS=0
@ -22,7 +22,7 @@ function select_service_and_act {
-kb-custom-1 "${enable}" \ -kb-custom-1 "${enable}" \
-kb-custom-2 "${disable}" \ -kb-custom-2 "${disable}" \
-kb-custom-3 "${stop}" \ -kb-custom-3 "${stop}" \
-kb-custom-4 "${restart}") -kb-custom-4 "${restart}" | sed -n 's/ \+/ /gp')
rofi_exit="$?" rofi_exit="$?"