iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes, logging, and better shellcheck conformance
[distro-setup]
/
brc
diff --git
a/brc
b/brc
index 84837358700987d5510d9d36e2c555d9ffd25e70..971cb02b7de02678fc5d9ce89a77df8fc5c4924a 100644
(file)
--- a/
brc
+++ b/
brc
@@
-666,10
+666,17
@@
khcopy() {
# ya, hacky hardcoded hostnames in 2023. we could do better
hssh-update() {
# ya, hacky hardcoded hostnames in 2023. we could do better
hssh-update() {
+ local -a failed_hosts
for host in kd x3.office.fsf.org syw; do
e $host
for host in kd x3.office.fsf.org syw; do
e $host
- scp /b/fai/fai/config/files/usr/local/bin/hssh/IANK root@$host:/usr/local/bin/hssh
+ if ! scp /b/fai/fai/config/files/usr/local/bin/hssh/IANK root@$host:/usr/local/bin/hssh; then
+ failed_hosts+=($host)
+ fi
done
done
+ if (( ${#failed_hosts[@]} >= 1 )); then
+ echo failed_hosts=${failed_hosts[*]}
+ return 1
+ fi
}
a() {
}
a() {
@@
-1055,6
+1062,10
@@
etail2() {
}
ccomp tail etail etail2
}
ccomp tail etail etail2
+# ran into this online, trying it out
+detach() {
+ ( "$@" &>/dev/null & disown )
+}
showkeys() {
ssh "$@" cat .ssh/authorized_keys{,2}
showkeys() {
ssh "$@" cat .ssh/authorized_keys{,2}
@@
-1660,7
+1671,7
@@
ksu() { # history search unique
histrm() {
history -n
HISTTIMEFORMAT= history | awk -v IGNORECASE=1 '{ a=$1; sub(/^ *[^ ]+ */, "") }; /'"$*"'/'
histrm() {
history -n
HISTTIMEFORMAT= history | awk -v IGNORECASE=1 '{ a=$1; sub(/^ *[^ ]+ */, "") }; /'"$*"'/'
- read -p "press anything but contrl-c to delete"
+ read -
r -
p "press anything but contrl-c to delete"
for entry in $(HISTTIMEFORMAT= history | awk -v IGNORECASE=1 '{ a=$1; sub(/^ *[^ ]+ */, "") }; /'"$*"'/ { print a }' | tac); do
history -d $entry
done
for entry in $(HISTTIMEFORMAT= history | awk -v IGNORECASE=1 '{ a=$1; sub(/^ *[^ ]+ */, "") }; /'"$*"'/ { print a }' | tac); do
history -d $entry
done
@@
-1938,6
+1949,11
@@
reresolv() {
fi
}
fi
}
+# add annoyingly long argument which should be the default
+sedi() {
+ sed -i --follow-symlinks "$@"
+}
+
rmstrips() {
ssh fencepost head -n 300 /gd/gnuorg/EventAndTravelInfo/rms-current-trips.txt | less
}
rmstrips() {
ssh fencepost head -n 300 /gd/gnuorg/EventAndTravelInfo/rms-current-trips.txt | less
}