From 8cc92d74e0650722053718e218439988a65e4be4 Mon Sep 17 00:00:00 2001 From: Lukewh Date: Fri, 6 May 2022 14:12:26 +0200 Subject: [PATCH] Add wrapper.sh --- wrapper.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 wrapper.sh diff --git a/wrapper.sh b/wrapper.sh new file mode 100755 index 0000000..1a5ee19 --- /dev/null +++ b/wrapper.sh @@ -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 "${@}"