From: j8takagi Date: Fri, 22 May 2026 00:58:32 +0000 (+0900) Subject: 細部の修正 X-Git-Url: https://www.j8takagi.net/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fmain;p=ip_update.git 細部の修正 --- diff --git a/Makefile b/Makefile index 883e553..283f9a8 100644 --- a/Makefile +++ b/Makefile @@ -21,4 +21,4 @@ distclean: $(RM) $(TARGETS) %: %.sh - $(PRINTF) "#!%s\n" `$(WHICH) sh` >$@ && $(CAT) $< >>$@ && $(CHMOD) 700 $@ + $(PRINTF) "#!%s\n" "/bin/sh" >$@ && $(CAT) $< >>$@ && $(CHMOD) 755 $@ diff --git a/global_ip_chk.sh b/global_ip_chk.sh index c998439..04fb270 100755 --- a/global_ip_chk.sh +++ b/global_ip_chk.sh @@ -1,4 +1,3 @@ -#!/bin/sh BINDIR=~/bin IPDIR=~ @@ -6,7 +5,7 @@ IPFILE=${IPDIR}/globalip.txt IPCHECKSERVER=ifconfig.io -NOWIP=$(wget -q -O - https://${IPCHECKSERVER}) +NOWIP=$(wget -q -O - https://${IPCHECKSERVER}/) if test -z "${NOWIP}"; then printf "Failed to retrieve Global IP. Exiting." >&2