Fix bug that prevented linux standalone bundle from working on a fresh install

Bug was introduced in version 8.20201007, lost a necessary mkdir.

This commit was sponsored by Noam Kremen on Patreon.
This commit is contained in:
Joey Hess 2020-10-23 12:18:52 -04:00
parent 02d3e58610
commit 0736383e98
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 15 additions and 0 deletions

View file

@ -151,6 +151,10 @@ if [ -z "${LOCPATH+set}" ] && [ -z "$GIT_ANNEX_PACKAGE_INSTALL" ]; then
done
if [ ! -d "$LOCPATH" ]; then
if ! mkdir -p "$HOME/.cache/git-annex/locales"; then
echo "Unable to write to $HOME/.cache/git-annex/locales; can't continue!" >&2
exit 1
fi
locpathtmp="$HOME/.cache/git-annex/locales.tmp/$locpathbase.$$"
if ! mkdir -p "$locpathtmp"; then
echo "Unable to write to $locpathtmp; can't continue!" >&2