From 5da2340a8971e90a38b2364c7fc91854d6075002 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Thu, 26 Mar 2026 14:25:52 +0100 Subject: [PATCH] Revert "Make clean-tutorial.sh executable from any directory (#716)" This reverts commit 0c910008ee65b8f87371c2e3b0d5ff269e017283. --- changelog-entries/716.md | 2 -- clean-all.sh | 4 ---- tools/clean-tutorial-base.sh | 4 ---- 3 files changed, 10 deletions(-) delete mode 100644 changelog-entries/716.md diff --git a/changelog-entries/716.md b/changelog-entries/716.md deleted file mode 100644 index f8ff37793..000000000 --- a/changelog-entries/716.md +++ /dev/null @@ -1,2 +0,0 @@ -- Allow running tutorial cleaning scripts (`clean-tutorial.sh`, `clean-all.sh`) from the repository root by resolving paths relative to the script location. - diff --git a/clean-all.sh b/clean-all.sh index 6245f84f6..db75b0df0 100755 --- a/clean-all.sh +++ b/clean-all.sh @@ -1,10 +1,6 @@ #!/usr/bin/env sh set -e -u -# Always operate relative to the directory of this script -SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -cd "$SCRIPT_DIR" - echo "Cleaning up all tutorials..." find . -maxdepth 2 -mindepth 2 -name clean-tutorial.sh -execdir sh -c './clean-tutorial.sh' \; diff --git a/tools/clean-tutorial-base.sh b/tools/clean-tutorial-base.sh index 5d8a0ba74..5dbb6c639 100755 --- a/tools/clean-tutorial-base.sh +++ b/tools/clean-tutorial-base.sh @@ -1,10 +1,6 @@ #!/usr/bin/env sh set -e -u -# Determine the tutorial directory (where the symlink is located) -TUTORIAL_DIR="$(cd "$(dirname "$0")" && pwd)" -cd "$TUTORIAL_DIR" - # shellcheck disable=SC1091 . ../tools/cleaning-tools.sh