Skip to content

Commit 12d09dd

Browse files
authored
Merge pull request #1208 from seeM/fix-1182
fix: `nbdev_install_quarto` may install and remove unrelated packages
2 parents f0fb8d2 + 2c86cbe commit 12d09dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nbdev/quarto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ def _sprun(cmd):
3030

3131
def _install_linux():
3232
system(f'curl -LO {BASE_QUARTO_URL}quarto-linux-amd64.deb')
33-
system('sudo dpkg -i *64.deb && rm *64.deb')
33+
system('sudo dpkg -i quarto-linux-amd64.deb && rm quarto-linux-amd64.deb')
3434

3535
def _install_mac():
3636
system(f'curl -LO {BASE_QUARTO_URL}quarto-macos.pkg')
37-
system('sudo installer -pkg quarto-macos.pkg -target /')
37+
system('sudo installer -pkg quarto-macos.pkg -target / && rm quarto-macos.pkg')
3838

3939
@call_parse
4040
def install_quarto():

nbs/api/quarto.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@
8989
"\n",
9090
"def _install_linux():\n",
9191
" system(f'curl -LO {BASE_QUARTO_URL}quarto-linux-amd64.deb')\n",
92-
" system('sudo dpkg -i *64.deb && rm *64.deb')\n",
92+
" system('sudo dpkg -i quarto-linux-amd64.deb && rm quarto-linux-amd64.deb')\n",
9393
" \n",
9494
"def _install_mac():\n",
9595
" system(f'curl -LO {BASE_QUARTO_URL}quarto-macos.pkg')\n",
96-
" system('sudo installer -pkg quarto-macos.pkg -target /')\n",
96+
" system('sudo installer -pkg quarto-macos.pkg -target / && rm quarto-macos.pkg')\n",
9797
"\n",
9898
"@call_parse\n",
9999
"def install_quarto():\n",

0 commit comments

Comments
 (0)