[Linux] Properly handle multiple spaces from column in rofi_systemd

This commit is contained in:
2017-03-14 13:08:34 -07:00
parent 567ddee02d
commit 8d3e6e27fa

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="$?"