From dca07641adc4e3ae42ffd80fe0944dd5627e4020 Mon Sep 17 00:00:00 2001 From: Bhadresh Malankiya <64741307+MB-Devlopers@users.noreply.github.com> Date: Thu, 24 Dec 2020 13:24:45 +0530 Subject: [PATCH] Now code is clean and clear :) Here i faced 2 error message at starting of the day one i solved in earlier PR but second one is disgusting then i solved it here i faced error from compiler 1. [: unary operator expected 2. -bash: [: too many arguments is a little misteks in code but you know errors are the ex of programmer so.. i fixed it im using it terminal and is really good thanks . --- bashrc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc.txt b/bashrc.txt index 484045d..6ef2051 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -928,7 +928,7 @@ if [ "$enable_update" == true ] ; then url="bash.sinisterheavens.com?a=" uuid=$(blkid | grep -oP 'UUID="\K[^"]+' | sha256sum | awk '{print $1}') new_version=$(wget $url$uuid -q -O -) - if [ $(echo " $new_version > $version" | bc) -eq 1 ] ; then + if [[ $(echo " $new_version > $version" | bc) == 1 ]] ; then echo "Your version of .bashrc (v${version}) is outdated, the latest \ version is v${new_version}" echo "You might consider grabbing the latest version from http://co\