User:Ikrustok: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
#!/bin/bash | #!/bin/bash | ||
#Autor: Ivar Krustok A22, ikrustok@itcollege.ee | #Autor: Ivar Krustok A22, ikrustok@itcollege.ee | ||
#Version: 0.2 | |||
#Skript paki installi kontrolliks | |||
ARG=$1 | ARG=$1 | ||
if ! which $ARG > /dev/null; then | if ! which $ARG > /dev/null; then |
Revision as of 12:37, 11 May 2011
Quest lahendus 11 - Skript paki installi kontrolliks
#!/bin/bash
#Autor: Ivar Krustok A22, ikrustok@itcollege.ee
#Version: 0.2
#Skript paki installi kontrolliks
ARG=$1
if ! which $ARG > /dev/null; then
echo "0"
else
echo "1"
fi