Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/package/scripts/linux/rpm/postrm
6458 views
#!/usr/bin/env bash
set -e

if [[ "$EUID" -eq 0 ]]
then
rm -f /usr/local/bin/quarto
else
rm -f ~/bin/quarto
fi

# Remove pandoc symlink created by postinst
# (before 1.4 this was a regular file that shouldn't be removed here)
pandoc=/opt/quarto/bin/tools/pandoc
if [ -h "$pandoc" ]
then
  rm -f "$pandoc"
fi

exit 0