Skip to content

Commit

Permalink
fix: wrong version displayed when installed using another user
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jan 23, 2024
1 parent ff2f28e commit f7979ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash-funk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ EOL
export BASH_FUNK_ROOT

if [[ -d ${BASH_FUNK_ROOT}/.git ]]; then
__BASH_FUNK_VERSION=$(cd ${BASH_FUNK_ROOT}/.git && git log -1 --format=%ci 2>/dev/null || true)
__BASH_FUNK_VERSION=$(cd "${BASH_FUNK_ROOT}" && git config --global --add safe.directory . && git log -1 --format=%ci 2>/dev/null || true)
elif [[ -d ${BASH_FUNK_ROOT}/.svn ]]; then
__BASH_FUNK_VERSION=$(svn info "${BASH_FUNK_ROOT}" 2>/dev/null || true)
if [[ $__BASH_FUNK_VERSION ]]; then
Expand Down

0 comments on commit f7979ef

Please sign in to comment.