Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Mac OS convenience script #204

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cidr2ip/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.0.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/cidr2ip-${VSN}/cidr2ip_${VSN}_${PLAT}.tar.gz
tar -xf cidr2ip_${VSN}_${PLAT}.tar.gz
rm cidr2ip_${VSN}_${PLAT}.tar.gz
mv cidr2ip_${VSN}_${PLAT} /usr/local/bin/cidr2ip
sudo mv cidr2ip_${VSN}_${PLAT} /usr/local/bin/cidr2ip

echo
echo 'You can now run `cidr2ip`'.
echo 'You can now run `cidr2ip`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions cidr2range/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.2.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/cidr2range-${VSN}/cidr2range_${VSN}_${PLAT}.tar.gz
tar -xf cidr2range_${VSN}_${PLAT}.tar.gz
rm cidr2range_${VSN}_${PLAT}.tar.gz
mv cidr2range_${VSN}_${PLAT} /usr/local/bin/cidr2range
sudo mv cidr2range_${VSN}_${PLAT} /usr/local/bin/cidr2range

echo
echo 'You can now run `cidr2range`'.
echo 'You can now run `cidr2range`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions grepdomain/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.0.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/grepdomain-${VSN}/grepdomain_${VSN}_${PLAT}.tar.gz
tar -xf grepdomain_${VSN}_${PLAT}.tar.gz
rm grepdomain_${VSN}_${PLAT}.tar.gz
mv grepdomain_${VSN}_${PLAT} /usr/local/bin/grepdomain
sudo mv grepdomain_${VSN}_${PLAT} /usr/local/bin/grepdomain

echo
echo 'You can now run `grepdomain`'.
echo 'You can now run `grepdomain`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions grepip/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.2.3
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/grepip-${VSN}/grepip_${VSN}_${PLAT}.tar.gz
tar -xf grepip_${VSN}_${PLAT}.tar.gz
rm grepip_${VSN}_${PLAT}.tar.gz
mv grepip_${VSN}_${PLAT} /usr/local/bin/grepip
sudo mv grepip_${VSN}_${PLAT} /usr/local/bin/grepip

echo
echo 'You can now run `grepip`'.
echo 'You can now run `grepip`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions ipinfo/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=3.3.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-${VSN}/ipinfo_${VSN}_${PLAT}.tar.gz
tar -xf ipinfo_${VSN}_${PLAT}.tar.gz
rm ipinfo_${VSN}_${PLAT}.tar.gz
mv ipinfo_${VSN}_${PLAT} /usr/local/bin/ipinfo
sudo mv ipinfo_${VSN}_${PLAT} /usr/local/bin/ipinfo

echo
echo 'You can now run `ipinfo`'.
echo 'You can now run `ipinfo`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions matchip/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.0.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/matchip-${VSN}/matchip_${VSN}_${PLAT}.tar.gz
tar -xf matchip_${VSN}_${PLAT}.tar.gz
rm matchip_${VSN}_${PLAT}.tar.gz
mv matchip_${VSN}_${PLAT} /usr/local/bin/matchip
sudo mv matchip_${VSN}_${PLAT} /usr/local/bin/matchip

echo
echo 'You can now run `matchip`'.
echo 'You can now run `matchip`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions prips/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.0.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/prips-${VSN}/prips_${VSN}_${PLAT}.tar.gz
tar -xf prips_${VSN}_${PLAT}.tar.gz
rm prips_${VSN}_${PLAT}.tar.gz
mv prips_${VSN}_${PLAT} /usr/local/bin/prips
sudo mv prips_${VSN}_${PLAT} /usr/local/bin/prips

echo
echo 'You can now run `prips`'.
echo 'You can now run `prips`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions randip/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.1.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/randip-${VSN}/randip_${VSN}_${PLAT}.tar.gz
tar -xf randip_${VSN}_${PLAT}.tar.gz
rm randip_${VSN}_${PLAT}.tar.gz
mv randip_${VSN}_${PLAT} /usr/local/bin/randip
sudo mv randip_${VSN}_${PLAT} /usr/local/bin/randip

echo
echo 'You can now run `randip`'.
echo 'You can now run `randip`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions range2cidr/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.3.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/range2cidr-${VSN}/range2cidr_${VSN}_${PLAT}.tar.gz
tar -xf range2cidr_${VSN}_${PLAT}.tar.gz
rm range2cidr_${VSN}_${PLAT}.tar.gz
mv range2cidr_${VSN}_${PLAT} /usr/local/bin/range2cidr
sudo mv range2cidr_${VSN}_${PLAT} /usr/local/bin/range2cidr

echo
echo 'You can now run `range2cidr`'.
echo 'You can now run `range2cidr`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions range2ip/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.0.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/range2ip-${VSN}/range2ip_${VSN}_${PLAT}.tar.gz
tar -xf range2ip_${VSN}_${PLAT}.tar.gz
rm range2ip_${VSN}_${PLAT}.tar.gz
mv range2ip_${VSN}_${PLAT} /usr/local/bin/range2ip
sudo mv range2ip_${VSN}_${PLAT} /usr/local/bin/range2ip

echo
echo 'You can now run `range2ip`'.
echo 'You can now run `range2ip`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi
8 changes: 5 additions & 3 deletions splitcidr/macos.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/sh

set -e

VSN=1.0.0
PLAT=darwin_amd64

curl -LO https://github.com/ipinfo/cli/releases/download/splitcidr-${VSN}/splitcidr_${VSN}_${PLAT}.tar.gz
tar -xf splitcidr_${VSN}_${PLAT}.tar.gz
rm splitcidr_${VSN}_${PLAT}.tar.gz
mv splitcidr_${VSN}_${PLAT} /usr/local/bin/splitcidr
sudo mv splitcidr_${VSN}_${PLAT} /usr/local/bin/splitcidr

echo
echo 'You can now run `splitcidr`'.
echo 'You can now run `splitcidr`.'

if [ -f "$0" ]; then
rm $0
rm "$0"
fi