|
@ -32,7 +32,7 @@ gogocarto:init() { |
|
|
|
|
|
|
|
|
cd "${GOGOCARTO_CODE}" || return 1 |
|
|
cd "${GOGOCARTO_CODE}" || return 1 |
|
|
if [ -d "$PWD"/.git ]; then |
|
|
if [ -d "$PWD"/.git ]; then |
|
|
rm -rf "$PWD"/* "$PWD"/{.version,.env} || return 1 |
|
|
|
|
|
|
|
|
rm -rf "${PWD:?}"/* "$PWD"/{.version,.env} || return 1 |
|
|
else |
|
|
else |
|
|
err "Can't find the '.git' directory in ${GOGOCARTO_CODE}." |
|
|
err "Can't find the '.git' directory in ${GOGOCARTO_CODE}." |
|
|
return 1 |
|
|
return 1 |
|
|