Files
Cloud-book/node_modules/dnode-protocol/testling/test.sh
2025-08-27 17:10:05 +08:00

24 lines
370 B
Bash

#!/bin/bash
if test -z "$user"; then
echo -n "username: "
read user
fi
browsers=""
if test -n "$2"; then
browsers="browsers=$2"
fi
function testFile {
tar -cf- index.js "$1" node_modules/traverse/index.js \
| curl -u "$user" -sSNT- \
"http://testling.com/?$browsers&main=$1"
}
if test -f "$1"; then
testFile "$1"
else
echo not
fi