From 6e0b1029f9751c63a6fa8594bfa7bb47737cf33b Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 23 Sep 2021 07:37:47 -0700 Subject: [PATCH] fix bash syntax errors --- home/-shrc | 1 - sh/streamcrap | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/home/-shrc b/home/-shrc index 6d1f764..b612de6 100644 --- a/home/-shrc +++ b/home/-shrc @@ -143,7 +143,6 @@ alias gb='git --no-pager branch' ### @- display the current git branch. alias ash="busybox ash" alias pip="maybesudo -H pip3" alias revend='objcopy -I binary -O binary --reverse-bytes=4' ### @- reverse the 4-byte endianness of a single file. *this is an in-place operation!* -alias aur="BUILDDIR=$HOME/src $HOME/sh/aur -jj" alias clone='maybesudo rsync -aHA --info=progress2 --no-i-r' ### @- invoke rsync suitably for creating virtually indistinguishable copies of files. alias aligntabs="column -t -s$'\t'" ### @- align tab-delimited fields in stdin. alias crawla='ssh joshua@crawl.akrasiac.org -i ~/.ssh/crawl' ### @- play Dungeon Crawl: Stone Soup through ssh on the akrasiac server. diff --git a/sh/streamcrap b/sh/streamcrap index e8531f1..295e7a5 100644 --- a/sh/streamcrap +++ b/sh/streamcrap @@ -74,7 +74,7 @@ mpv_watch() { ### @- local url="$1"; shift # checking for redundant flags might itself be redundant, but i want to be sure. local seen=0 - for a; do [ "$a" = "${a#--ytdl-format=}" ] || seen=1 done + for a; do [ "$a" = "${a#--ytdl-format=}" ] || seen=1; done if [ $seen -eq 0 ]; then mpv \ --af=lavfi="[$_M_PROCESS]" \