Skip to content

Commit

Permalink
build: fixed retrieving project dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerex committed Jul 12, 2024
1 parent f607fd3 commit db69503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/validate
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set -e

echo -e "\nUpdate (Re)generated translation files..."

PROJ_DIR=$(dirname $0)
PROJ_DIR=$(cd $(dirname $(dirname $0)) && pwd)
if [[ -z $(command -v go-bindata) ]]; then
echo -e "\nInstalling go-bindata..."
# install outside of GO PATH
Expand All @@ -27,6 +27,7 @@ if [[ -z $(command -v go-bindata) ]]; then
fi

pushd $PROJ_DIR >/dev/null
ls -al
go-bindata -pkg resources -o resources -o i18n4go/resources/i18n_resources.go -nocompress i18n4go/i18n/resources/*.json
echo -e "\nCompleted."

Expand Down

0 comments on commit db69503

Please sign in to comment.