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