diff --git a/larbs.sh b/larbs.sh index 22ed880..14ab9e5 100755 --- a/larbs.sh +++ b/larbs.sh @@ -122,6 +122,7 @@ putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriti dir=$(mktemp -d) chown -R $name:wheel $dir sudo -u $name git clone --depth 1 $1 $dir/gitrepo &>/dev/null && + sudo -u $name mkdir -p "$2" && sudo -u $name cp -rT $dir/gitrepo $2 }