From 56f0cf9d157bc2b902e4590364e2926c2f169b05 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Thu, 17 Jul 2008 22:35:35 +0200 Subject: makepkg : localize the Y/n part of the question. pacman already localizes the yesno stuff, so doing the same in makepkg is more consistent. Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 77e61a0b..d127d164 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1215,10 +1215,11 @@ if [ "$CLEANCACHE" = "1" ]; then #fix flyspray feature request #5223 if [ -n "$SRCDEST" -a "$SRCDEST" != "$startdir" ]; then msg "$(gettext "Cleaning up ALL files from %s.")" "$SRCDEST" - echo -n "$(gettext " Are you sure you wish to do this? [Y/n] ")" + echo -n "$(gettext " Are you sure you wish to do this? ")" + echo -n "$(gettext "[Y/n]")" read answer - answer=$(echo $answer | tr '[:upper:]' '[:lower:]') - if [ "$answer" = "yes" -o "$answer" = "y" ]; then + answer=$(echo $answer | tr '[:lower:]' '[:upper:]') + if [ "$answer" = "$(gettext "YES")" -o "$answer" = "$(gettext "Y")" ]; then rm "$SRCDEST"/* if [ $? -ne 0 ]; then error "$(gettext "Problem removing files; you may not have correct permissions in %s")" "$SRCDEST" -- cgit v1.2.3-70-g09d2