From 767c0821ee0a1ad893efe9b5bc8e84f5629f8416 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Fri, 4 Nov 2022 21:43:06 +0100 Subject: scripts: removed bashisms --- .local/bin/barpos | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/barpos') diff --git a/.local/bin/barpos b/.local/bin/barpos index 16626a3..d84709d 100755 --- a/.local/bin/barpos +++ b/.local/bin/barpos @@ -1,6 +1,6 @@ #!/bin/sh -BAR_CFG=$XDG_CONFIG_HOME/polybar/config.ini +BAR_CFG="$XDG_CONFIG_HOME/polybar/config.ini" main () { if [ ! -n "$1" ]; then @@ -26,11 +26,11 @@ toggle () { } bottom () { - sed -ir "s|^bottom = .*$|bottom = true|" $BAR_CFG + sed -Ei "s|^bottom = .*$|bottom = true|" $BAR_CFG } top () { - sed -ir "s|^bottom = .*$|bottom = false|" $BAR_CFG + sed -Ei "s|^bottom = .*$|bottom = false|" $BAR_CFG } main "$@" -- cgit v1.2.3-70-g09d2