summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Tanure <tanure@linux.com>2015-12-16 12:11:18 -0200
committerLucas Tanure <tanure@linux.com>2015-12-16 12:11:18 -0200
commit51bfb85958fa475d894bf036f2af7d51d54d461f (patch)
tree8850e41a1ab6366dcc0ac19d1deddd4dde5d48a9
parentdfa27c78dc9b8a0157f6fe630f7cf849ec48041d (diff)
Test and create folder before go cd
Signed-off-by: Lucas Tanure <tanure@linux.com>
-rwxr-xr-xwl_clone3
1 files changed, 3 insertions, 0 deletions
diff --git a/wl_clone b/wl_clone
index 3342d94..9cf2a8c 100755
--- a/wl_clone
+++ b/wl_clone
@@ -11,6 +11,9 @@ clone_or_update() {
repo=$1
dest=$(basename $repo)
+ if [ ! -d ${WLROOT} ]; then
+ mkdir -p ${WLROOT}
+ fi
cd ${WLROOT}
echo
echo $dest