Skip to content

Commit

Permalink
added install check for curl in tmux-publicip
Browse files Browse the repository at this point in the history
  • Loading branch information
VectorCell committed Sep 18, 2020
1 parent 19e7fa2 commit 012f64a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tmux-publicip
@@ -1,3 +1,9 @@
#!/bin/bash

if [ -z "$(command -v curl)" ]; then
if [ -n "$(command -v apt)" ]; then
sudo apt install -y curl
fi
fi

curl -4 icanhazip.com 2> /dev/null

0 comments on commit 012f64a

Please sign in to comment.