kde5-migrate-user-conf: fix path of new local apps config (~/.local/share/, not ~/.local/)

This commit is contained in:
Silvan Calarco 2016-07-06 13:56:59 +02:00
parent 454d2162af
commit 2e4a80a200

View File

@ -26,18 +26,18 @@ done
for p in ~/.kde4/share/apps/*; do
[ -L $p ] && continue
f=`basename $p`
if [ -e ~/.local/$f ]; then
if [ -e ~/.local/share/$f ]; then
if [ "$FORCE" ]; then
echo "Migrating $p -> ~/.local/$f [forced]"
mv ~/.local/$f ~/.local/$f.bak
mv $p ~/.local/ || exit 1
ln -s ../../../.local/$f $p || exit 1
echo "Migrating $p -> ~/.local/share/$f [forced]"
mv ~/.local/share/$f ~/.local/share/$f.bak
mv $p ~/.local/share/ || exit 1
ln -s ../../../.local/share/$f $p || exit 1
fi
#echo "SKIPPED: $p"
else
echo "Migrating $p -> ~/.local/$f"
mv $p ~/.local/ || exit 1
ln -s ../../../.local/$f $p || exit 1
echo "Migrating $p -> ~/.local/share/$f"
mv $p ~/.local/share || exit 1
ln -s ../../../.local/share/$f $p || exit 1
fi
done
touch ~/.kde4/share/.kde5_conf_migrated