scripts/check-uninsane: fix ftp check, to not error if README.md exists in the current directory
This commit is contained in:
parent
075418eda1
commit
d708b78ebe
|
@ -55,7 +55,17 @@ check "servo-hn wireguard network" ping -c 1 -W 3 servo-hn
|
|||
|
||||
check "git.uninsane.org" git ls-remote origin --quiet
|
||||
|
||||
check "ftp://uninsane.org" lftpget ftp://uninsane.org/README.md && rm README.md
|
||||
lftpgetIntoTmp() {
|
||||
local url="$1"
|
||||
local localName="$2"
|
||||
(
|
||||
# run these commands in a subshell to preserve the old PWD
|
||||
pushd /tmp
|
||||
rm -f "$localName"
|
||||
lftpget "$url"
|
||||
)
|
||||
}
|
||||
check "ftp://uninsane.org" lftpgetIntoTmp ftp://uninsane.org/README.md README.md
|
||||
|
||||
echo ""
|
||||
echo "systemctl --failed:"
|
||||
|
|
Loading…
Reference in New Issue
Block a user