Skip to content

Commit

Permalink
Add install script to archive
Browse files Browse the repository at this point in the history
This includes a script, install.sh, with the archive created for distribution.

Fixes issue #75
  • Loading branch information
gammazero committed Apr 26, 2021
1 parent f2b237b commit 83c22bf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dist/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

bin=ipget

# this script is currently brain dead.
# it merely tries two locations.
# in the future maybe use value of $PATH.

binpath=/usr/local/bin
if [ -d "$binpath" ]; then
mv "$bin" "$binpath/$bin"
echo "installed $binpath/$bin"
exit 0
fi

binpath=/usr/bin
if [ -d "$binpath" ]; then
mv "$bin" "$binpath/$bin"
echo "installed $binpath/$bin"
exit 0
fi

0 comments on commit 83c22bf

Please sign in to comment.