small fixes

master
Stephen Cochrane 4 years ago
parent b82aad7b0e
commit 48c092ff3a
  1. 2
      binary
  2. 2
      bip

@ -7,4 +7,4 @@ toBinary(){
printf "%s\n" "$bit"
}
[ $(isnum $1) -eq 1 ] && toBinary $1 || exit 1
toBinary $1

2
bip

@ -6,6 +6,6 @@ addr2=$(echo $1 | cut -d "." -f 2)
addr3=$(echo $1 | cut -d "." -f 3)
addr4=$(echo $1 | cut -d "." -f 4)
. binary s > /dev/null
. binary 0 > /dev/null
echo $(toBinary $addr1)"."$(toBinary $addr2)"."$(toBinary $addr3)"."$(toBinary $addr4)

Loading…
Cancel
Save