kiss: sort swap changes

This commit is contained in:
Dylan Araps 2020-05-11 17:38:24 +03:00
parent a73b7278ac
commit 970301805c
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -986,7 +986,7 @@ pkg_swap() {
cp -Pf "$2" "$pkg_owns>${alt#*>}"
sed "$(esc "$2" "$PWD/$pkg_owns>${alt#*>}")" \
"../installed/$pkg_owns/manifest" > "$mak_dir/.$1"
"../installed/$pkg_owns/manifest" | sort -r > "$mak_dir/.$1"
mv -f "$mak_dir/.$1" "../installed/$pkg_owns/manifest"
fi
@ -996,7 +996,7 @@ pkg_swap() {
mv -f "$alt" "$2"
sed "$(esc "$PWD/$alt" "$2")" \
"../installed/$1/manifest" > "$mak_dir/.$1"
"../installed/$1/manifest" | sort -r > "$mak_dir/.$1"
mv -f "$mak_dir/.$1" "../installed/$1/manifest"
}