summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalepurge9
1 files changed, 7 insertions, 2 deletions
diff --git a/localepurge b/localepurge
index 28e2091..e4699f9 100755
--- a/localepurge
+++ b/localepurge
@@ -62,10 +62,11 @@ ayuda () {
einfo "Usage: `basename $0` [options]"
echo
einfo "${BOLD}-debug (-d) ${NORMAL} : debug mode."
- einfo "${BOLD}-help (-h) ${NORMAL} : show this help."
- einfo "${BOLD}-list (-l) ${NORMAL} : list directories to be cleared"
+ einfo "${BOLD}-help (-h) ${NORMAL} : show this help."
+ einfo "${BOLD}-list (-l) ${NORMAL} : list directories to be cleared."
einfo "${BOLD}-nocolor (-nc) ${NORMAL} : no color mode."
einfo "${BOLD}-pretend (-p) ${NORMAL} : pretend mode."
+ einfo "${BOLD}-update (-u) ${NORMAL} : update localelist."
einfo "${BOLD}-verbose (-v) ${NORMAL} : verbose mode."
einfo "${BOLD}-version ${NORMAL} : show version."
echo
@@ -132,6 +133,10 @@ for x in $@; do
ACTION=print
SHOWFREEDSPACE=disabled
+ elif [ "$x" = "-update" ] || [ "$x" = "-u" ]; then
+ createlist
+ exit 0
+
elif [ "$x" = "-verbose" ] || [ "$x" = "-v" ]; then
VERBOSE=enabled
ACTION="rm -vf"