diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2008-07-17 22:35:35 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-23 08:38:31 -0500 |
commit | 56f0cf9d157bc2b902e4590364e2926c2f169b05 (patch) | |
tree | 5d86aec093c8830b5d2269a5a220b7960cd1b423 /scripts/makepkg.sh.in | |
parent | 96e023c7bd0b1069878667278a45a34476c42472 (diff) | |
download | pacman-56f0cf9d157bc2b902e4590364e2926c2f169b05.tar.xz |
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 <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 7 |
1 files changed, 4 insertions, 3 deletions
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" |