summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorOskar <oskar@mullvad.net>2025-02-05 08:51:47 +0100
committerOskar <oskar@mullvad.net>2025-02-05 15:55:09 +0100
commit237c6f18e82ec75f05e9bf4cc2c71fef5be780bf (patch)
tree026c15feb6bf471234693685511d235ab582d577 /scripts
parente199a78430bfdb9074e5c0fd16782db7fe4167d3 (diff)
downloadmullvadvpn-237c6f18e82ec75f05e9bf4cc2c71fef5be780bf.tar.xz
mullvadvpn-237c6f18e82ec75f05e9bf4cc2c71fef5be780bf.zip
Add comments describing what each of the release scripts do
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/utils/gh-ready-check3
-rwxr-xr-xscripts/utils/print-and-run3
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/utils/gh-ready-check b/scripts/utils/gh-ready-check
index 97c0ee6539..164b5de903 100755
--- a/scripts/utils/gh-ready-check
+++ b/scripts/utils/gh-ready-check
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
+# This script controls that the gh (GitHub CLI) command is installed and authenticated. This can be
+# called in the beginning of all scripts depending on gh.
+
set -eu
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
diff --git a/scripts/utils/print-and-run b/scripts/utils/print-and-run
index ab5443ed2e..b323040f3c 100755
--- a/scripts/utils/print-and-run
+++ b/scripts/utils/print-and-run
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
+# This is a small utility script that can be sourced to provide a function that prints its arguments
+# and then calls them as a command, e.g. `print_and_run sleep 5`.
+
function print_and_run {
echo "+ $*"
"$@"