done
# remove stuff in old places
- for candidate in `find . -name $SLACKBUILD`; do
+ for candidate in $(find . -name $(basename $SLACKBUILD)); do
oldplace="`dirname $candidate | sed -e 's/^\.\///'`"
if [ "$oldplace" != "$SLACKBUILD_PATH" ]; then
echo "Removing SlackBuild found at old path $oldplace"
done
# remove stuff in old places
- for candidate in `find . -name $MKBUILD_NAME`; do
+ for candidate in $(find . -name $(basename $MKBUILD_NAME)); do
oldplace="`dirname $candidate | sed -e 's/^\.\///'`"
if [ "$oldplace" != "$MKBUILD_PATH" ]; then
echo "Removing mkbuild found at old path $oldplace"