diff options
author | shaiton <shaiton@fedoraproject.org> | 2011-05-29 11:48:37 (GMT) |
---|---|---|
committer | shaiton <shaiton@fedoraproject.org> | 2011-05-29 11:48:37 (GMT) |
commit | de66fadf2f5f17083b5add10c410cb7b92c456c9 (patch) | |
tree | 72ec899c78a8db2de21ae68894d42d4ff8cefc97 | |
parent | e6ee91e2c021ca5d7de3e22429e3315eb027b914 (diff) |
jparser checking dest path (create if false)
-rwxr-xr-x | jparser | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -118,6 +118,10 @@ if [[ -n "$1" ]]; then user=$2 if [[ -n "$3" ]]; then # Path provided as arg? path=$3 + if [ ! -d "$path" ]; then + echo "Error, path providen is incorrect (check permissions)" + exit 1 + fi if [[ -n "$4" ]]; then dest=${4}/ if [ ! -d "$dest" ]; then |