* Another slight update, getting rid of -rf flags and clarifying a message.
This commit is contained in:
parent
0a1ca73183
commit
68876e4eb0
1 changed files with 3 additions and 2 deletions
|
@ -492,7 +492,7 @@ if [ "$CLEANCACHE" = "1" ]; then
|
||||||
read answer
|
read answer
|
||||||
answer=$(echo $answer | tr [:upper:] [:lower:])
|
answer=$(echo $answer | tr [:upper:] [:lower:])
|
||||||
if [ "$answer" = "yes" -o "$answer" = "y" ]; then
|
if [ "$answer" = "yes" -o "$answer" = "y" ]; then
|
||||||
rm -rf "$SRCDEST"/*
|
rm "$SRCDEST"/*
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
error "Problem removing files; you may not have correct permissions in $SRCDEST"
|
error "Problem removing files; you may not have correct permissions in $SRCDEST"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -507,8 +507,9 @@ if [ "$CLEANCACHE" = "1" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# SRCDEST undefined (should never happen)
|
# $SRCDEST is $startdir, two possibilities
|
||||||
error "Source destination must be defined in makepkg.conf."
|
error "Source destination must be defined in makepkg.conf."
|
||||||
|
plain "In addition, please run makepkg -C outside of your cache directory."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue