From f678d88c78737dcfa734979b5c93465b28d2bc8e Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Mon, 28 Oct 2019 13:28:30 +0100 Subject: [PATCH] Bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -correction de l’encodage si le script est lancé depuis LauchAgent --- plugins.d/installed.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins.d/installed.sh b/plugins.d/installed.sh index 9b70e20..4a6a1f5 100755 --- a/plugins.d/installed.sh +++ b/plugins.d/installed.sh @@ -139,9 +139,9 @@ atom=$(apm list | grep 'Community Packages' -A 100 | sed '1,1d') echo "\`\`\`bash" >> Installed.md while read -r line; do - a=$(echo "$line" | awk -F "@" '{print $1}') - atom_pkg=${a:4} - echo "$atom_pkg" >> "$chemin/Installed.md" + a=$(echo "$line" | awk -F "@" '{print $1}' | awk '{print $2}' ) + #atom_pkg=${a:4} + echo "$a" >> Installed.md done <<< "$atom" echo "\`\`\`" >> Installed.md echo '' >> Installed.md @@ -193,9 +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 +iconv -f macroman -t utf-8 Installed.md > Installed-utf8.md +#iconv -s -f macroman -t utf-8 Installed.md +mv Installed-utf8.md "$filename".md +rm Installed.md open "$filename".md