more compatible switches
This commit is contained in:
@@ -37,9 +37,9 @@ printf "\n| %15s | %s\n" IP Hostname
|
||||
for addr in $( hostname -I ); do
|
||||
printf "| %15s | %s\n" $addr $( dig +short -x $addr )
|
||||
done
|
||||
echo Scotty, beam $( hostname ) down | nc -l -p $PORT
|
||||
echo Scotty, beam $( hostname ) down | nc -l $PORT
|
||||
echo Transporter locking to signature
|
||||
tar -cv $SCOTTY_TAR "$2" | $PV | nc -l -p $PORT
|
||||
tar -cv $SCOTTY_TAR "$2" | $PV | nc -l $PORT
|
||||
}
|
||||
[[ "$1" = down ]] && {
|
||||
nc -w 10 "$2" $PORT
|
||||
|
||||
Reference in New Issue
Block a user