HEX
Server: Apache
System: Linux wp02.tdr-lab.com 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User: kusanagi (1001)
PHP: 7.4.23
Disabled: NONE
Upload Files
File: //lib/rpm/check-prereqs
#!/bin/bash

bashit="/bin/bash --rpm-requires"

# Make sure that this bash has the rpm-requires hack
$bashit < /dev/null 2>&1 > /dev/null || exit $?

prereqs="`cat | $bashit | sort | uniq | sed -e 's/^bash(//' -e 's/)$//' -e 's/^executable(//' -e 's/)$//'`"
[ -z "$prereqs" ] && exit 0

for prereq in $prereqs
do
    case $prereq in
    /*)	echo $prereq ;;
    *)	echo "`which $prereq`" ;;
    esac
done | sort | uniq