Skip to content

Commit

Permalink
Create test_bashfile.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mngugi committed May 16, 2024
1 parent ad7e987 commit 338e0d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test_bashfile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
if [ -f /bin/bash ]
then
echo “file /bin/bash exists”
fi
if [ -d /bin/bash ]
then
echo “/bin/bash is a directory”
else
echo “/bin/bash is NOT a directory”
fi

0 comments on commit 338e0d7

Please sign in to comment.