|
|
@ -358,16 +358,22 @@ if [ -e "./shared/cache.A" ] && [ -e "./shared/cache.B" ]; then
|
|
|
|
echo "cache symlink points to $(readlink ./shared/cache)" >&2
|
|
|
|
echo "cache symlink points to $(readlink ./shared/cache)" >&2
|
|
|
|
case "$(readlink ./shared/cache)" in
|
|
|
|
case "$(readlink ./shared/cache)" in
|
|
|
|
cache.A)
|
|
|
|
cache.A)
|
|
|
|
echo "maybe rm -r ./shared/cache.B" >&2
|
|
|
|
echo "removing ./shared/cache.B" >&2
|
|
|
|
|
|
|
|
rm -r ./shared/cache.B
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
cache.B)
|
|
|
|
cache.B)
|
|
|
|
echo "maybe rm -r ./shared/cache.A" >&2
|
|
|
|
echo "removing ./shared/cache.A" >&2
|
|
|
|
|
|
|
|
rm -r ./shared/cache.A
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|
echo "unexpected" >&2
|
|
|
|
echo "unexpected" >&2
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "./shared/cache doesn't exist" >&2
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -e "./shared/cache.A" ]; then
|
|
|
|
if [ -e "./shared/cache.A" ]; then
|
|
|
|