RemoteFileName='tyNodeManager_linux' cd /tmp rm -rf $RemoteFileName httpClient="curl" if hash wget 2>/dev/null; then echo "wget ✔" httpClient="wget --no-cache -O -" fi if hash curl 2>/dev/null; then echo "curl ✔" httpClient="curl -k -L" fi echo ">>> use $httpClient" $httpClient 'https://tachyon.eco/?n=yr8mtzfwee.LatestWebNodeManagerDownloadAction' > $RemoteFileName if hash sudo 2>/dev/null; then sudo mkdir -p /usr/local/bin sudo mv $RemoteFileName /usr/local/bin/tyNodeManager sudo chmod +x /usr/local/bin/tyNodeManager else mkdir -p /usr/local/bin mv $RemoteFileName /usr/local/bin/tyNodeManager chmod +x /usr/local/bin/tyNodeManager fi