From 68876e4eb029386dffee5c5084551bcc8cfe626d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 9 Mar 2007 05:11:47 +0000 Subject: * Another slight update, getting rid of -rf flags and clarifying a message. --- scripts/makepkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/makepkg') diff --git a/scripts/makepkg b/scripts/makepkg index 397a3296..587f7340 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -492,7 +492,7 @@ if [ "$CLEANCACHE" = "1" ]; then read answer answer=$(echo $answer | tr [:upper:] [:lower:]) if [ "$answer" = "yes" -o "$answer" = "y" ]; then - rm -rf "$SRCDEST"/* + rm "$SRCDEST"/* if [ $? -ne 0 ]; then error "Problem removing files; you may not have correct permissions in $SRCDEST" exit 1 @@ -507,8 +507,9 @@ if [ "$CLEANCACHE" = "1" ]; then exit 0 fi else - # SRCDEST undefined (should never happen) + # $SRCDEST is $startdir, two possibilities error "Source destination must be defined in makepkg.conf." + plain "In addition, please run makepkg -C outside of your cache directory." exit 1 fi fi -- cgit v1.2.3-24-g4f1b