Bugfix - amélioration

-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)
This commit is contained in:
2019-10-28 10:35:16 +01:00
parent eaeda193d6
commit d0898cb1e4

View File

@@ -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 '## mas (Mac App Store)' >> Installed.md
echo '' >> Installed.md echo '' >> Installed.md
appfrommas=$(mas list) appfrommas=$(mas list | sort -k2)
#echo "$appfrommas" #echo "$appfrommas"
#declare -a appstore #declare -a appstore
echo "\`\`\`bash" >> Installed.md 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 -e "To restore everything listed in that file, run \033[3m\033[93m'$ brew bundle'\033[0m in folder that contains the Brewfile."
echo '' 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 mv Installed.md "$filename".md
#rm Installed.md
open "$filename".md open "$filename".md