From d0898cb1e44b898cbceb67c1912c32ab013f3026 Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Mon, 28 Oct 2019 10:35:16 +0100 Subject: [PATCH] =?UTF-8?q?Bugfix=20-=20am=C3=A9lioration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -le fichier Installed.md est maintenant crée avec le bon encodage utf-8 (iconv) -les applis du mas sont triées par ordre alphabétique (sort -k2) --- plugins.d/installed.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins.d/installed.sh b/plugins.d/installed.sh index 0e4f1b0..9b70e20 100755 --- a/plugins.d/installed.sh +++ b/plugins.d/installed.sh @@ -86,7 +86,7 @@ echo -e "🍏 Get mas \033[3m\033[93mApp Store applications\033[0m list" echo '## mas (Mac App Store)' >> Installed.md echo '' >> Installed.md -appfrommas=$(mas list) +appfrommas=$(mas list | sort -k2) #echo "$appfrommas" #declare -a appstore echo "\`\`\`bash" >> Installed.md @@ -193,6 +193,9 @@ echo '' echo -e "To restore everything listed in that file, run \033[3m\033[93m'$ brew bundle'\033[0m in folder that contains the Brewfile." echo '' +#iconv -f macroman -t utf-8 Installed.md > Installed-utf8.md +iconv -s -f macroman -t utf-8 Installed.md mv Installed.md "$filename".md +#rm Installed.md open "$filename".md