diff --git a/history.txt b/history.txt index c06e42c..56ebd03 100644 --- a/history.txt +++ b/history.txt @@ -7,6 +7,10 @@ Current version from Geoffray Levasseur ------------------------------------------------------------------------------ Version history: ------------------------------------------------------------------------------ +# 21/11/2022 v3.2.2 + Fixed taz compression level analysis + Fixed typo in dpkgs + # 20/11/2022 v3.2.1 Fix some messages Make dpkgs rpm aware (more to come) diff --git a/profile.d/compress.sh b/profile.d/compress.sh index 2e85bca..906fada 100644 --- a/profile.d/compress.sh +++ b/profile.d/compress.sh @@ -258,7 +258,7 @@ taz () echo " -p, --parallel Number of threads to use (if allowed by underlying utility)" echo " -v, --verbose Display progress where possible" echo " -q, --quiet Display less messages (only errors and warnings)" - echo " -1, .., -9 Compression level to use [1=fast/big, 9=slow/small]" + echo " -1, .., -9 Compression level to use [1=fast/biggest, 9=slow/smallest]" echo echo "Supported archive format:" echo " Param.| programs | Algo. | Description" @@ -291,15 +291,15 @@ taz () "-q"|"--quiet") QUIET=1 - - "-"[1..9]) - local complevel=$(echo $opt | sed 's/-//') - ;; + ;; "-"*) - echo "Invalid option, use taz --help to display options list" - echo - return 1 + local complevel=$(echo $opt | sed 's/-//') + if ! [[ $complevel =~ ^[1-9]+$ ]]; then + disp E "Invalid option, use taz --help to display options list" + echo + return 1 + fi ;; *) diff --git a/profile.d/packages.sh b/profile.d/packages.sh index f85c51f..1606886 100644 --- a/profile.d/packages.sh +++ b/profile.d/packages.sh @@ -70,7 +70,7 @@ dpkgs () if [[ $(command -v dpkg >/dev/null 2>&1) ]]; then dpkg -l | grep $pkg - elif [[ $(command -v dpkg >/dev/null 2>&1) ]]; then + elif [[ $(command -v rpm >/dev/null 2>&1) ]]; then rpm -qa | grep $pkg else disp E "No usable package manager seems unavialable." diff --git a/profile.d/pwd.sh b/profile.d/pwd.sh old mode 100755 new mode 100644 diff --git a/profile.sh b/profile.sh index 069e244..3208b4d 100644 --- a/profile.sh +++ b/profile.sh @@ -35,7 +35,7 @@ # * OF SUCH DAMAGE. # ------------------------------------------------------------------------------ -export PROFVERSION="3.2.1" +export PROFVERSION="3.2.2" export DEFAULT_CITY="Toulouse"