From 8f7d89d56242e5f561f1abf03b742939dae31c97 Mon Sep 17 00:00:00 2001 From: poka Date: Fri, 6 Dec 2019 15:22:11 +0000 Subject: [PATCH] fix grep -v to detect ipfs isntall --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c94fc27..d0293f0 100755 --- a/install.sh +++ b/install.sh @@ -17,7 +17,7 @@ if [ "$EUID" -eq 0 ] fi echo "Ce script configure votre noeud G1sms+" -IPFS=$(ps auxf --sort=+utime | grep -w ipfs | grep -v "color=auto" | tail -n 1 | cut -d " " -f 1); +IPFS=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1); [[ -z $IPFS ]] && $MY_PATH/.install/install_requirements.sh && $MY_PATH/.install/configure_ipfs_layer.sh