diff --git a/spells/cantrips/await-keypress b/spells/cantrips/await-keypress index 0188735..e4a3181 100755 --- a/spells/cantrips/await-keypress +++ b/spells/cantrips/await-keypress @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash # This magical spell captures and processes key presses. # Use it to capture key presses from the terminal and determine which key was pressed. @@ -66,7 +66,4 @@ await_keypress() { esac } -# Check if the script is being executed or sourced, if executed then call the function -if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then - await_keypress -fi +await_keypress diff --git a/spells/cantrips/fathom-cursor b/spells/cantrips/fathom-cursor index e37f876..68d9733 100755 --- a/spells/cantrips/fathom-cursor +++ b/spells/cantrips/fathom-cursor @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This spell reveals the x and y coordinates of the cursor in the terminal window. diff --git a/spells/cantrips/move-cursor b/spells/cantrips/move-cursor index 6fa0e7f..e7fb455 100755 --- a/spells/cantrips/move-cursor +++ b/spells/cantrips/move-cursor @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash # This magical spell moves the cursor to the specified x and y coordinates in the terminal window, as if guided by an unseen hand. @@ -23,7 +23,4 @@ test_move_cursor() { echo "All tests passed" } -# Check if the script is being sourced, and run it if not -if [ "${BASH_SOURCE[0]}" = "$0" ]; then - move_cursor "$@" -fi +move_cursor "$@" \ No newline at end of file