runshell: Fix a edge case where rm errors were sent to stdout, which could confuse things parsing git-annex output.
This commit is contained in:
parent
3363cc7515
commit
cd9a60bc7d
3 changed files with 12 additions and 1 deletions
|
@ -143,7 +143,7 @@ if [ -z "${LOCPATH+set}" ] && [ -z "$GIT_ANNEX_PACKAGE_INSTALL" ]; then
|
|||
for localecache in $HOME/.cache/git-annex/locales/*; do
|
||||
cachebase=$(cat "$localecache/base" 2>/dev/null || true)
|
||||
if [ ! -d "$cachebase" ] || ! cmp "$localecache/buildid" "$cachebase/buildid" >/dev/null 2>&1 ; then
|
||||
rm -rf "$localecache" 2>&1 || true
|
||||
rm -rf "$localecache" >/dev/null 2>&1 || true
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue