Skip to content

Commit

Permalink
Add wrapper.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukewh committed May 6, 2022
1 parent 10dcfc4 commit 8cc92d7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

CMD="${1}"

if [ "${CMD}" == "upgrade" ]; then
echo "You are running the Deno snap. The upgrade command is unavailable."
echo "The snap is updated automatically after a new release of Deno."
echo "You can force an update by running the command:"
echo " snap refresh deno"
echo ""
echo "If you think there is an issue, create an issue at https://github.com/Lukewh/deno-snap"
exit 1
fi

$SNAP/bin/deno "${@}"

0 comments on commit 8cc92d7

Please sign in to comment.