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.
1 parent 01c0431 commit 34ccd0eCopy full SHA for 34ccd0e
generate-release-checksums.sh
@@ -6,15 +6,14 @@ if [ -z "$1" ]; then
6
exit 1
7
fi
8
9
-for f in $(find "$1" -iname '*.img.xz'); do
10
- echo "Processing ${f}"
+find "$1" -iname '*.img.xz' -exec bash -c '
+ echo "Processing" {}
11
s_dir="${PWD}"
12
- f_dir="$(dirname "${f}")"
13
- f_name="$(basename "${f}")"
+ f_dir="$(dirname "{}")"
+ f_name="$(basename "{}")"
14
echo "Entering ${f_dir}" && cd "${f_dir}"
15
echo "Writing ${f_name}.sha256"
16
sha256sum -b --tag "${f_name}" > "${f_name}.sha256"
17
- echo "Returning to ${s_dir}" && cd "${s_dir}"
18
-done
+ echo "Returning to ${s_dir}" && cd "${s_dir}"' \;
19
20
exit 0
0 commit comments