From: sev Date: Sat, 27 Jan 2024 23:32:53 +0000 (-0600) Subject: install.sh: remove redundant sed commands X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/0b6d64fdda18194db1c59e871b0c3e6ca54aea76?ds=inline install.sh: remove redundant sed commands --- diff --git a/install.sh b/install.sh index 5fd522a..5232abf 100755 --- a/install.sh +++ b/install.sh @@ -146,7 +146,7 @@ if command -v librewolf >$devnull 2>&1; then if [ -f "$profiles" ]; then find librewolf/chrome -mindepth 1 -maxdepth 1 -type f | while read -r x; do # vv arcane bullshit vv - sed -En 's/^Path=(.+)/\1/;Tx;p;:x' "$profiles" | while read -r y; do + sed -En 's/^Path=(.+)/\1/;T;p' "$profiles" | while read -r y; do # ignore profiles that are most likely unused # TODO: actually check profiles.ini profile="$DEST/.librewolf/$y"