diff options
author | Lucas Tanure <tanure@linux.com> | 2015-12-16 12:11:18 -0200 |
---|---|---|
committer | Lucas Tanure <tanure@linux.com> | 2015-12-16 12:11:18 -0200 |
commit | 51bfb85958fa475d894bf036f2af7d51d54d461f (patch) | |
tree | 8850e41a1ab6366dcc0ac19d1deddd4dde5d48a9 | |
parent | dfa27c78dc9b8a0157f6fe630f7cf849ec48041d (diff) |
Test and create folder before go cd
Signed-off-by: Lucas Tanure <tanure@linux.com>
-rwxr-xr-x | wl_clone | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |