From 80d5c54225e115ec0f260c253f14db25fbc7d117 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 8 Jan 2025 20:11:42 -0800 Subject: fix typos with `typos` --- sh/alarm | 2 +- sh/ccp | 2 +- sh/curlqb | 2 +- sh/mpvy | 2 +- sh/u | 2 +- sh/upd | 2 +- sh/vpn | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'sh') diff --git a/sh/alarm b/sh/alarm index 5342e7d..6b6cf4b 100755 --- a/sh/alarm +++ b/sh/alarm @@ -4,7 +4,7 @@ min="$1" [ "$1" ] && shift printf "notify-send -u critical %s; bell" "$(/usr/bin/printf '%q ' "${@:-alarm}")" | at now + "${min:-0}" minutes && [ "$min" ] && [ "$min" -ne 0 ] && notify-send "Successfully Scheduled" -# at used to not like string like 'Boiling Water!', don't know why now it works, if see similar issue, use folllowing codes +# at used to not like string like 'Boiling Water!', don't know why now it works, if see similar issue, use following codes #at now + "$1" minutes << EOF && notify-send 'Successfully Scheduled' #notify-send -u critical "${2:-alarm}" #bell diff --git a/sh/ccp b/sh/ccp index 8b7cfcd..66175d7 100755 --- a/sh/ccp +++ b/sh/ccp @@ -26,7 +26,7 @@ git checkout master for commit in $(git rev-list --reverse "$picked..HEAD"); do git show "$commit" printf 'Enter branch names to cherry pick this commit: -(a for all, space to seperate multiple branches, enter to skip)\n' +(a for all, space to separate multiple branches, enter to skip)\n' read -r branch_pick if [ "$branch_pick" = a ]; then branch_pick="$all_branch_no_master" diff --git a/sh/curlqb b/sh/curlqb index 96d3eee..5a15e06 100755 --- a/sh/curlqb +++ b/sh/curlqb @@ -3,7 +3,7 @@ # need --no-clobber if don't want overwrite when same name # if do this also need change .py.1 to .py else qbt will not accept # also if a.py and a_1.py, qbt will not accept the latter, maybe need to change some .py codes inside -# now, I choose to let three files to be overwrited, those are "with categories" .py files that overwrite without categories .py files, which is what I want so I don't use --no-clobber +# now, I choose to let three files to be overwritten, those are "with categories" .py files that overwrite without categories .py files, which is what I want so I don't use --no-clobber # yggtracker.py requires yggdrasil which I don't want to install curl -sS 'https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-plugins' | awk -F'"' ' /user-content-plugins-for-private-sites/ {exit} diff --git a/sh/mpvy b/sh/mpvy index 61d9b41..3af45a3 100755 --- a/sh/mpvy +++ b/sh/mpvy @@ -14,7 +14,7 @@ url= cookie_ytdl= cookie_mpv= -# option f and h may do nothing if redownload? since same filename exist. yt-dlp won't download same file even without --auto-file-renameing=false. how improve? pass argument to aria2c? +# option f and h may do nothing if redownload? since same filename exist. yt-dlp won't download same file even without --auto-file-renaming=false. how improve? pass argument to aria2c? while getopts Aabcd:f:h:su: opt; do case $opt in # s: streaming, a: aria2c then mpv, A: aria2c diff --git a/sh/u b/sh/u index e0f9218..a7dc8c0 100755 --- a/sh/u +++ b/sh/u @@ -1,5 +1,5 @@ #!/bin/sh -# temporary solution before rewriting upd anc cfg to be better and more automated +# temporary solution before rewriting upd and cfg to be better and more automated ssh-add -l || ssh-add diff --git a/sh/upd b/sh/upd index 6485750..5ffdbce 100755 --- a/sh/upd +++ b/sh/upd @@ -34,7 +34,7 @@ backup () { if [ "$hostname" = xyzinsp ]; then # Pull repos and branches from studio, so one more backup on insp or duplicity will backup to ia,for one more backup for 321 backup rule # cfgl master and pp branches already satisfy 321 rule. Here are three copies: 1. master/pp, 2. studio, 3. gitlab or alternative - # But I still copy those on insp because one more copy will not hurt. And all my other data stil satisfy 3 copies without backup to gitlab, so why left out cfgl? Also it may be nice if I what to use that local dir for searching things. + # But I still copy those on insp because one more copy will not hurt. And all my other data still satisfy 3 copies without backup to gitlab, so why left out cfgl? Also it may be nice if I what to use that local dir for searching things. cd "$HOME/programs/config_local_arch" || exit git branch | awk '{print ($1=="*")?$2:$1}' | while read -r branch; do git checkout "$branch" diff --git a/sh/vpn b/sh/vpn index bdda294..7898e57 100755 --- a/sh/vpn +++ b/sh/vpn @@ -13,7 +13,7 @@ wg_aa_restore_default () { case "$(nmcli -t --fields device,state device)" in # stop aa wireguard+swgp server that listen from insp wiregurad+swgp client, start aa wg+swgp connect to ca # use /usr/bin/alacritty instead of /home/xyz/.local/bin/alacritty so script can wait until alacritty exit to run other codes following - *wg_aa:connected*) /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manully close this window:"; ssh -t aawg "sudo systemctl stop wg-quick@wg0 && sudo systemctl start wg-quick@wg_ca"';; + *wg_aa:connected*) /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manually close this window:"; ssh -t aawg "sudo systemctl stop wg-quick@wg0 && sudo systemctl start wg-quick@wg_ca"';; esac } @@ -33,7 +33,7 @@ if nmcli -t --fields device,state device | grep -q "^wg_$1:connected$"; then notify-send -u critical "$1 VPN disabled" else if [ "$1" = aa ]; then - /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manully close this window"; ssh -t aawg "sudo systemctl stop wg-quick@wg_ca && sudo systemctl start wg-quick@wg0"' + /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manually close this window"; ssh -t aawg "sudo systemctl stop wg-quick@wg_ca && sudo systemctl start wg-quick@wg0"' fi down_not_mydefault nmcli connection down wg_mydefault -- cgit v1.2.3-70-g09d2