Public feed #599797

Anonymous

public text v1 · immutable
Raw Edit
·published 2007-07-02 13:25 UTC
rendered paste body
#!/bin/sh
pkg=`cat slack-required | cut -d " " -f1`
need=`cat slack-required | cut -d " " -f2`
version=`cat slack-required | cut -d " " -f3`

if [ $need == ">=" ]; then
        echo "Maior que"
fi

check=`find /var/log/packages -name $pkg-$version | wc -l`
if [ $check == "1" ]; then
        echo "slackware/?/$pkg-$version\n"
fi
if [ $check == "0" ]; then
        echo "$pkg-$version"
fi