Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshaiton <shaiton@fedoraproject.org>2011-05-29 11:48:37 (GMT)
committer shaiton <shaiton@fedoraproject.org>2011-05-29 11:48:37 (GMT)
commitde66fadf2f5f17083b5add10c410cb7b92c456c9 (patch)
tree72ec899c78a8db2de21ae68894d42d4ff8cefc97
parente6ee91e2c021ca5d7de3e22429e3315eb027b914 (diff)
jparser checking dest path (create if false)
-rwxr-xr-xjparser4
1 files changed, 4 insertions, 0 deletions
diff --git a/jparser b/jparser
index 9ff3b73..4f650ec 100755
--- a/jparser
+++ b/jparser
@@ -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