I am trying to write a script which automatically checks out or updates a Subversion URL based on whether a specified directory exists or not.
For some reason, my co
You could use Kernel#test:
test ?d, 'some directory'
it gets it's origins from https://ss64.com/bash/test.html you will notice bash test has this flag -d to test if a directory exists -d file True if file is a Directory. [[ -d demofile ]]
test
-d
-d file True if file is a Directory. [[ -d demofile ]]