Skip to content

Commit

Permalink
Check dependencies and rc file
Browse files Browse the repository at this point in the history
  • Loading branch information
coditva committed Feb 4, 2017
1 parent 973bd1c commit e761fec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/sh

# Check if curl and wget installed
if ! which wget > /dev/null && which curl > /dev/null ; then
echo "wget or curl not installed $0"
fi

# Copy config file to the right place
cp ./bitsnetrc ~/.bitsnetrc
if ! which bitsnet > /dev/null ; then
cp ./bitsnetrc ~/.bitsnetrc
fi

# Copy the script to executables
if [ ! -d ~/.local/lib/bitsnet ]; then
Expand Down

0 comments on commit e761fec

Please sign in to comment.