--login is required to set the path correctly, and we now throw away any
errors from which.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-#!/bin/bash
+#!/bin/bash --login
###############################################################################
# #
# Pakfire - The IPFire package management system #
return 1
fi
- cat "${scriptlet}" >&2
-
# We require a shell
echo "/bin/sh"
echo "${req}"
;;
*)
- which "${req}"
+ which "${req}" 2>/dev/null
;;
esac
done < <(bash --rpm-requires < "${scriptlet}" | sed -e "s/^.*(//;s/)$//" | sort -u)