kde5-migrate-user-conf: fix path of new local apps config (~/.local/share/, not ~/.local/)
This commit is contained in:
parent
454d2162af
commit
2e4a80a200
@ -26,18 +26,18 @@ done
|
|||||||
for p in ~/.kde4/share/apps/*; do
|
for p in ~/.kde4/share/apps/*; do
|
||||||
[ -L $p ] && continue
|
[ -L $p ] && continue
|
||||||
f=`basename $p`
|
f=`basename $p`
|
||||||
if [ -e ~/.local/$f ]; then
|
if [ -e ~/.local/share/$f ]; then
|
||||||
if [ "$FORCE" ]; then
|
if [ "$FORCE" ]; then
|
||||||
echo "Migrating $p -> ~/.local/$f [forced]"
|
echo "Migrating $p -> ~/.local/share/$f [forced]"
|
||||||
mv ~/.local/$f ~/.local/$f.bak
|
mv ~/.local/share/$f ~/.local/share/$f.bak
|
||||||
mv $p ~/.local/ || exit 1
|
mv $p ~/.local/share/ || exit 1
|
||||||
ln -s ../../../.local/$f $p || exit 1
|
ln -s ../../../.local/share/$f $p || exit 1
|
||||||
fi
|
fi
|
||||||
#echo "SKIPPED: $p"
|
#echo "SKIPPED: $p"
|
||||||
else
|
else
|
||||||
echo "Migrating $p -> ~/.local/$f"
|
echo "Migrating $p -> ~/.local/share/$f"
|
||||||
mv $p ~/.local/ || exit 1
|
mv $p ~/.local/share || exit 1
|
||||||
ln -s ../../../.local/$f $p || exit 1
|
ln -s ../../../.local/share/$f $p || exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
touch ~/.kde4/share/.kde5_conf_migrated
|
touch ~/.kde4/share/.kde5_conf_migrated
|
||||||
|
Loading…
Reference in New Issue
Block a user