fix grep -v to detect ipfs isntall
This commit is contained in:
parent
8285ccc858
commit
8f7d89d562
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue