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>
This commit is contained in:
parent
96e023c7bd
commit
56f0cf9d15
1 changed files with 4 additions and 3 deletions
|
@ -1215,10 +1215,11 @@ if [ "$CLEANCACHE" = "1" ]; then
|
||||||
#fix flyspray feature request #5223
|
#fix flyspray feature request #5223
|
||||||
if [ -n "$SRCDEST" -a "$SRCDEST" != "$startdir" ]; then
|
if [ -n "$SRCDEST" -a "$SRCDEST" != "$startdir" ]; then
|
||||||
msg "$(gettext "Cleaning up ALL files from %s.")" "$SRCDEST"
|
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
|
read answer
|
||||||
answer=$(echo $answer | tr '[:upper:]' '[:lower:]')
|
answer=$(echo $answer | tr '[:lower:]' '[:upper:]')
|
||||||
if [ "$answer" = "yes" -o "$answer" = "y" ]; then
|
if [ "$answer" = "$(gettext "YES")" -o "$answer" = "$(gettext "Y")" ]; then
|
||||||
rm "$SRCDEST"/*
|
rm "$SRCDEST"/*
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
error "$(gettext "Problem removing files; you may not have correct permissions in %s")" "$SRCDEST"
|
error "$(gettext "Problem removing files; you may not have correct permissions in %s")" "$SRCDEST"
|
||||||
|
|
Loading…
Add table
Reference in a new issue