if[-d /abmusr06/abm/users/dywrk01/run_time];
then
echo "Pack installation Failed"
exit(1)
fi
This the above code fine?
if[-d /abmusr06/abm/users/dywrk01/run_time];
then
echo "Pack installation Failed"
exit(1)
fi
This the above code fine?
Assuming this is Bourne Shell (/bin/sh):
if [ -d /abmusr06/abm/users/dywrk01/run_time ]
then
echo "Pack installation Failed"
exit 1
fi
if [ -d
. Think of [
as a (key)word - it needs to stand by itself. You wouldn't say ls-l
, you say ls
(space)-l
.exit 1
, not exit(1)
.