From 012f64a4347c08d541041e676c24bc2105f6ba35 Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Thu, 17 Sep 2020 19:46:43 -0500 Subject: [PATCH] added install check for curl in tmux-publicip --- tmux-publicip | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmux-publicip b/tmux-publicip index d9be995..6257c7c 100755 --- a/tmux-publicip +++ b/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