Randy-Blancett / bashLibrary

Library of bash script utilities
MIT License
0 stars 1 forks source link

Need to create validation library #35

Open Randy-Blancett opened 2 weeks ago

Randy-Blancett commented 2 weeks ago

Need to create a library that can have common validation functions.

For Example

Exit if file exists

Exit if File does not exist

Should also move / update the ensure Root method

The idea here would be to make the validation process easier

Randy-Blancett commented 2 weeks ago

example take the path and boolean is Dir

if isdir == false [ !-D "${1}" ] && exists == false