Minor cleanup (#5)
authora1346054 <36859588+a1346054@users.noreply.github.com>
Sat, 20 Nov 2021 09:58:17 +0000 (09:58 +0000)
committerGitHub <noreply@github.com>
Sat, 20 Nov 2021 09:58:17 +0000 (09:58 +0000)
* use https link

* fix spelling

* fix minor shellcheck warning

* trim excess whitespace

Makefile
configure
dnsmasq.in
libc.in
resolvconf.8.in
resolvconf.conf.5.in
resolvconf.in

index 73fbb9a51048084c0dde2d490e8bfdddcbb7c356..a73e9e65ca825aabd9073e462e974a9c2951c4ae 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -119,4 +119,4 @@ _import-src:
        @${ECHO} "openresolv-${VERSION} imported to ${DESTDIR}"
 
 import-src:
-       ${MAKE} _import-src DESTDIR=`if [ -n "${DESTDIR}" ]; then echo "${DESTDIR}"; else  echo /tmp/${DISTPREFIX}; fi`
+       ${MAKE} _import-src DESTDIR=`if [ -n "${DESTDIR}" ]; then echo "${DESTDIR}"; else echo /tmp/${DISTPREFIX}; fi`
index c9422b74b69cb2356c40e9aa4eadc38284f504c5..90599ee2a7d365ca00edd3aa521a19b49eca0744 100755 (executable)
--- a/configure
+++ b/configure
@@ -92,7 +92,7 @@ dragonfly*)
        : ${LIBEXECDIR:=${PREFIX:-/usr}/libexec/resolvconf}
        ;;
 linux*)
-       # cksum does't support -a and netpgp is rare
+       # cksum doesn't support -a and netpgp is rare
        echo "CKSUM=            sha256sum --tag" >>$CONFIG_MK
        echo "PGP=              gpg2" >>$CONFIG_MK
        ;;
index 8014eed5721ee62508d50568bbdca07001ddfcde..825dda950c43b3bd207c0fbb0edb9214ffcb1c2b 100644 (file)
@@ -105,7 +105,7 @@ for d in $DOMAINS; do
                                                empty=true
                                                continue
                                        fi
-                                       i=$(($i + 1))
+                                       i=$((i + 1))
                                        while [ ${#addr} -lt 4 ]; do
                                                addr="0${addr}"
                                        done
@@ -118,7 +118,7 @@ for d in $DOMAINS; do
                                        fi
                                done
                                while [ $i != 8 ]; do
-                               i=$(($i + 1))
+                               i=$((i + 1))
                                        front="$front byte:0 byte:0"
                                done
                                front="${front}$back"
diff --git a/libc.in b/libc.in
index 2b291b7cee83572c9d8d0699ac7ee8109c9f84b5..4ae3eb928aeb1324436158b7fdddaadf0228fee3 100644 (file)
--- a/libc.in
+++ b/libc.in
@@ -107,7 +107,7 @@ fi
 
 backup=true
 signature="# Generated by resolvconf"
+
 uniqify()
 {
        result=
index 39020e9e4250a72411bb8485f314ef1c85d68eae..099810fe63030ad58be7bbaea3f663d1c50e8a68 100644 (file)
@@ -229,7 +229,7 @@ in the correct order.
 .Nm
 first processes interfaces from the
 .Sy interface_order
-list, then interfaces without a metic and that match the
+list, then interfaces without a metric and that match the
 .Sy dynamic_order
 list, then interfaces with a metric in order and finally the rest in
 the operating systems lexical order.
index b36e8678233d2c79fda1b2960f19d391c87dacbb..ab0ad9125e204a5e253d7537c05a64be16b4cf32 100644 (file)
@@ -134,7 +134,7 @@ search foo.org dead.beef
 nameserver 1.2.3.4
 nameserver 2.3.4.5
 .Ed
-and this configuaration:
+and this configuration:
 .Bd -compact -literal -offset indent
 replace="search/foo*/bar.com"
 replace="$replace nameserver/1.2.3.4/5.6.7.8"
@@ -385,4 +385,4 @@ Each distribution is a special snowflake and likes to name the same thing
 differently, namely the named service script.
 .Pp
 Please report them to
-.Lk http://roy.marples.name/projects/openresolv
+.Lk https://roy.marples.name/projects/openresolv
index b30e4f252bfeb8a7192d59fc42bb0cbdcc0bfa05..50f61fe31927b9b652a23959e90b1c157cb2e3e6 100644 (file)
@@ -290,9 +290,9 @@ config_mkdirs()
 
 # With the advent of alternative init systems, it's possible to have
 # more than one installed. So we need to try and guess what one we're
-# using unless overriden by configure.
+# using unless overridden by configure.
 # Note that restarting a service is a last resort - the subscribers
-# should make a reasonable attempt to reconfigre the service via some
+# should make a reasonable attempt to reconfigure the service via some
 # method, normally SIGHUP.
 detect_init()
 {