mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-17 06:20:27 +00:00
14 lines
307 B
Bash
Executable file
14 lines
307 B
Bash
Executable file
#!/bin/sh
|
|
# network device, change as appropriate
|
|
if ping -c 4 www.debian.org >/dev/null 2>&1; then
|
|
echo "--resource=network"
|
|
fi
|
|
|
|
if msgfmt -V > /dev/null 2>&1; then
|
|
echo "--resource=msgfmt"
|
|
fi
|
|
|
|
os=`python -c "import os; print os.name"`
|
|
if [ "x$os" = "xposix" ]; then
|
|
echo "--resource=posix"
|
|
fi
|