From 04caca6abd0e671736d9fc02623c005ae5d1b04d Mon Sep 17 00:00:00 2001 From: Francois B Date: Sun, 25 Mar 2018 22:30:58 +0200 Subject: [PATCH] p cli opts added for clean useless pkg --- core_functions.sh | 1 + yggdrasil.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core_functions.sh b/core_functions.sh index cb48b39..6f1b4bd 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -565,6 +565,7 @@ function usage () { printf " "$BOLDVERT"-t"$NORMAL" : install TLP for Laptops and low energy usage\n" printf " "$BOLDVERT"-n"$NORMAL" : install lastest Nvidia graphic drivers\n" printf " "$BOLDVERT"-u"$NORMAL" : update system (apt,snap,...)\n" + printf " "$BOLDVERT"-p"$NORMAL" : clean useless packages\n" printf " "$BOLDVERT"-v"$NORMAL" : show verison number\n" printf " "$BOLDVERT"-h"$NORMAL" : show help & informations\n" printf "\n" diff --git a/yggdrasil.sh b/yggdrasil.sh index 1bc6b13..3532439 100755 --- a/yggdrasil.sh +++ b/yggdrasil.sh @@ -50,7 +50,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >> # # arguments/options management with getopts -while getopts ":h,v,f,c,u,a,d,k,s,t,n,w,T" option; do +while getopts ":h,v,f,c,u,a,d,k,s,t,n,w,p,T" option; do case "$option" in T) #test purpose only yggInit