Skip to content

Commit

Permalink
Accommodate bundle name with spaces and properly quote variable expan…
Browse files Browse the repository at this point in the history
…sion to get correct sed options for BSD
  • Loading branch information
mrclary committed Jan 25, 2024
1 parent b26aa69 commit 94f3e7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/installers-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ jobs:
cat $base_prefix/uninstall-spyder.sh
if [[ -e "$shortcut" ]]; then
echo "Contents of $shortcut/Contents/MacOS:"
ls -al $shortcut/Contents/MacOS
echo "$shortcut/Contents/MacOS contents:"
ls -al "$shortcut/Contents/MacOS"
echo -e "\nContents of $shortcut/Contents/Info.plist:"
cat $shortcut/Contents/Info.plist
echo -e "\nContents of $shortcut/Contents/MacOS/spyder-script:"
cat $shortcut/Contents/MacOS/spyder-script
cat "$shortcut/Contents/Info.plist"
echo -e "\n$shortcut/Contents/MacOS/spyder"*-script contents:
cat "$shortcut/Contents/MacOS/spyder"*-script
else
echo "$shortcut does not exist"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion installers-conda/resources/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ add_alias() {
fi

# BSD sed does not like semicolons; newlines work for both BSD and GNU.
sed ${sed_opts[@]} "
sed "${sed_opts[@]}" "
/$m1/,/$m2/{
h
/$m2/ s|.*|$m1\n$alias_text\n$m2|
Expand Down

0 comments on commit 94f3e7c

Please sign in to comment.