Just want to ask if -f can also use to check if a directory is existing. Below is my code
Code:
oap_find_patch_fnc() {
echo " Enter patch number you want to retract or 99 to exit \c"
read patch_number
if [ $patch_number == 99 ]
then
exit 0
else
if [ -f "directory_$patch_number" ]