Permalink
Browse files

minor cosmetic tweaks

  • Loading branch information...
1 parent ce0fded commit 7c36f819c339ccac0fe1fe99a8d57f6e25df941a @graysky2 committed Dec 1, 2012
Showing with 17 additions and 12 deletions.
  1. +4 −0 CHANGELOG
  2. +13 −12 profile-cleaner
View
@@ -1,3 +1,7 @@
+v1.86
+01-Decv-2012
+Minor cosmetic tweaks.
+
v1.85
30-Nov-2012
Added an option to clean all supported profiles in one shot.
View
@@ -1,6 +1,6 @@
#!/bin/bash
export BLD="\e[01m" RED="\e[01;31m" GRN="\e[01;32m" YLW="\e[01;33m" NRM="\e[00m"
-VERS="1.85"
+VERS="1.86"
if [[ -z $(which parallel) ]]; then
echo "GNU Parallel is now a requirement of this script."
@@ -112,7 +112,7 @@ do_all() {
do_chromebased() {
[[ -h "$prepath" ]] && profilepath=$(readlink $prepath) || profilepath="$prepath"
[[ ! -d "$profilepath" ]] && echo "Error: no profile directory for $name found." && exit 1
- echo -e " ${RED}Cleaning profile for $name${RTS}"
+ echo -e " ${YLW}Cleaning profile for $name${RTS}"
find "$profilepath" -maxdepth 2 -type f -name 'Histor*' -o -name 'Archiv*' -o -name 'Safe*' | SHELL=/bin/bash parallel -k do_clean 2>/dev/null
echo
echo -e " ${BLD}Profile for $name reduced by ${YLW}$(grep $name /tmp/accounting.$name | gawk -F, '{ print $2 }' | paste -sd+ - | bc)${NRM} ${BLD}Mbytes.${RTS}"
@@ -225,16 +225,17 @@ case "$1" in
exit 0
;;
*)
- echo -e "$0 ${GRN}{a|c|ck|f|gc|t}${NRM}"
- echo " a) ALL supported profiles (auto-detected)"
- echo " c) Chromium"
- echo "ck) Conkeror"
- echo " f) Firefox"
- echo "gc) Google Chrome"
- echo " h) Heftig's Aurora"
- echo " m) Midori"
- echo " t) Thunderbird"
- echo " q) QupZilla"
+ echo -e " ${BLD}$0 ${NRM}${GRN}{a|c|ck|f|gc|h|m|t|q}${NRM}"
+ echo
+ echo -e " ${BLD}a) ${GRN}A${NRM}${BLD}ll supported profiles (auto-detected)"${NRM}
+ echo -e " ${BLD}c) ${GRN}C${NRM}${BLD}hromium"${NRM}
+ echo -e " ${BLD}ck) ${GRN}C${NRM}${BLD}on${GRN}k${NRM}${BLD}eror"${NRM}
+ echo -e " ${BLD}f) ${GRN}F${NRM}${BLD}irefox"${NRM}
+ echo -e " ${BLD}gc) ${GRN}G${NRM}${BLD}oogle ${GRN}C${NRM}${BLD}hrome"${NRM}
+ echo -e " ${BLD}h) ${GRN}H${NRM}${BLD}eftig's Aurora"${NRM}
+ echo -e " ${BLD}m) ${GRN}M${NRM}${BLD}idori"${NRM}
+ echo -e " ${BLD}t) ${GRN}T${NRM}${BLD}hunderbird"${NRM}
+ echo -e " ${BLD}q) ${GRN}Q${NRM}${BLD}upZilla"${NRM}
exit 0
;;
esac

0 comments on commit 7c36f81

Please sign in to comment.