1 Commits

Author SHA1 Message Date
e980198c08 taz: fixed compression level, dpkgs: typo 2022-11-21 16:13:28 +01:00
5 changed files with 14 additions and 10 deletions

View File

@@ -7,6 +7,10 @@ Current version from Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Version history: Version history:
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# 21/11/2022 v3.2.2
Fixed taz compression level analysis
Fixed typo in dpkgs
# 20/11/2022 v3.2.1 # 20/11/2022 v3.2.1
Fix some messages Fix some messages
Make dpkgs rpm aware (more to come) Make dpkgs rpm aware (more to come)

View File

@@ -258,7 +258,7 @@ taz ()
echo " -p, --parallel Number of threads to use (if allowed by underlying utility)" echo " -p, --parallel Number of threads to use (if allowed by underlying utility)"
echo " -v, --verbose Display progress where possible" echo " -v, --verbose Display progress where possible"
echo " -q, --quiet Display less messages (only errors and warnings)" 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
echo "Supported archive format:" echo "Supported archive format:"
echo " Param.| programs | Algo. | Description" echo " Param.| programs | Algo. | Description"
@@ -291,15 +291,15 @@ taz ()
"-q"|"--quiet") "-q"|"--quiet")
QUIET=1 QUIET=1
;;
"-"[1..9])
local complevel=$(echo $opt | sed 's/-//')
;;
"-"*) "-"*)
echo "Invalid option, use taz --help to display options list" local complevel=$(echo $opt | sed 's/-//')
echo if ! [[ $complevel =~ ^[1-9]+$ ]]; then
return 1 disp E "Invalid option, use taz --help to display options list"
echo
return 1
fi
;; ;;
*) *)

View File

@@ -70,7 +70,7 @@ dpkgs ()
if [[ $(command -v dpkg >/dev/null 2>&1) ]]; then if [[ $(command -v dpkg >/dev/null 2>&1) ]]; then
dpkg -l | grep $pkg 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 rpm -qa | grep $pkg
else else
disp E "No usable package manager seems unavialable." disp E "No usable package manager seems unavialable."

0
profile.d/pwd.sh Executable file → Normal file
View File

View File

@@ -35,7 +35,7 @@
# * OF SUCH DAMAGE. # * OF SUCH DAMAGE.
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
export PROFVERSION="3.2.1" export PROFVERSION="3.2.2"
export DEFAULT_CITY="Toulouse" export DEFAULT_CITY="Toulouse"