User:Ikrustok
From ICO wiki
Quest lahendus 11 - Skript paki installi kontrolliks
#!/bin/bash
#Autor: Ivar Krustok A22, ikrustok@itcollege.ee
#Version: 1
#Skript paki installi kontrolliks
ARG=$1
if ! which $ARG > /dev/null; then
echo "0"
else
echo "1"
fi