Skip to content

Commit

Permalink
localization: make clearer errors
Browse files Browse the repository at this point in the history
I'm getting this error, and the gitlab log does not say which case is
failing.
  • Loading branch information
eighthave committed Oct 18, 2017
1 parent f7368df commit 60d1cef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/prepare-multi-lang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ if [ ! -f _config.yml ]; then
exit 1
fi

if [[ $# == 0 || ! -d $1/en ]]; then
if [[ $# == 0 ]]; then
echo "At least one argument required!"
exit 1
fi

if [ ! -d $1/en ]; then
echo "$1/en does not exist!"
echo "First argument must be the directory of the Jekyll website."
echo "This should take into account the baseurl as well. If the site"
echo "is output to 'build/' and the baseurl is 'fdroid-website/' then"
Expand Down

0 comments on commit 60d1cef

Please sign in to comment.