Align shell style all over the repo
This commit is contained in:
parent
afb13d9c9c
commit
d5e71c46f7
16 changed files with 113 additions and 86 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# rfcopen
|
||||
# Written in 2019 by Lucas
|
||||
# Written in 2019-2020 by Lucas
|
||||
# CC0 1.0 Universal/Public domain - No rights reserved
|
||||
#
|
||||
# To the extent possible under law, the author(s) have dedicated all
|
||||
|
@ -38,7 +38,7 @@ while getopts T flag; do
|
|||
;;
|
||||
esac
|
||||
done
|
||||
shift $(($OPTIND - 1))
|
||||
shift $((OPTIND - 1))
|
||||
|
||||
[ $# -eq 1 ] && [ -n "$1" ] && n=$(tonumber "$1") || usage
|
||||
rfcfile=$RFCDIR/rfc$n.txt
|
||||
|
@ -46,7 +46,6 @@ url=https://tools.ietf.org/rfc/rfc$n.txt
|
|||
|
||||
mkdir -p "$RFCDIR"
|
||||
if [ ! -f "$rfcfile" ]; then
|
||||
$torsocks ftp -Vo "$rfcfile" "$url" || err "Couldn't fetch RFC $n."
|
||||
$torsocks ftp -Vo "$rfcfile" "$url" || err "couldn't fetch RFC $n"
|
||||
fi
|
||||
|
||||
${PAGER:-more} "$rfcfile"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue