Advertisement
bheng8200

directoryCheck

Jul 20th, 2022
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. path="/home/forge/pm2020/public"
  3. if [ -d "$path" ]
  4. then
  5.     echo "Directory $path exists."
  6. else
  7.     echo "Error: Directory $path does not exists."
  8. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement