We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59b5178 + f91002b commit 1899f7fCopy full SHA for 1899f7f
steps/improve/after.sh
@@ -1,6 +1,7 @@
1
#!/bin/sh
2
#
3
# SPDX-FileCopyrightText: 2024 Gábor Stefanik <[email protected]>
4
+# SPDX-FileCopyrightText: 2025 Dor Askayo <[email protected]>
5
6
# SPDX-License-Identifier: GPL-3.0-or-later
7
@@ -10,7 +11,10 @@
10
11
. /steps/env
12
13
if [ -d /steps/after ]; then
- find /steps/after -maxdepth 1 -name '*.sh' -exec bash {} \;
14
+ after_scripts=$(find /steps/after -maxdepth 1 -type f -name '*.sh' -printf '%f\t%p\n' | sort -k1 -n | cut -f2)
15
+ for script in $after_scripts; do
16
+ bash "$script"
17
+ done
18
fi
19
20
if [ "${INTERACTIVE}" = True ]; then
0 commit comments