Thread
:
[ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
View Single Post
Mohammad
2011-08-02 , 22:17
Posts: 105 | Thanked: 49 times | Joined on Jul 2011
#
1592
excuse me gurus
just a question
can some body translate this to me line by line
Code: Select all
SVN="subversion"
rpm -q $SVN >/dev/null 2>&1
# 'rpm' exits with a 0 if the package is in the system
if [ "$?" -ne "0" ]; then
yum -y install $SVN
fi
I tried in Mint with
Code: Select all
if [ "subversion" != "0" ]; then
echo "No suitable SVN package installed. Grabbing one now . . ."; sleep 1
apt-get install -y subversion >/dev/null && echo "Got one."
else
echo -e "Dependencies met. Continuing on . . .\n"; sleep 1
fi
Quote & Reply
|
Mohammad
View Public Profile
Send a private message to Mohammad
Find all posts by Mohammad