Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion steps/improve/after.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
#
# SPDX-FileCopyrightText: 2024 Gábor Stefanik <[email protected]>
# SPDX-FileCopyrightText: 2025 Dor Askayo <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
Expand All @@ -10,7 +11,10 @@
. /steps/env

if [ -d /steps/after ]; then
find /steps/after -maxdepth 1 -name '*.sh' -exec bash {} \;
after_scripts=$(find /steps/after -maxdepth 1 -type f -name '*.sh' -printf '%f\t%p\n' | sort -k1 -n | cut -f2)
for script in $after_scripts; do
bash "$script"
done
fi

if [ "${INTERACTIVE}" = True ]; then
Expand Down