Check for file or directory instead of just file

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-05-24 08:18:53 +02:00
parent be3f555573
commit b7609d1c63
No known key found for this signature in database
GPG Key ID: 7DD3015F3DDE4B9C

View File

@ -59,7 +59,7 @@ runs:
for target in ${paths}
do
if [[ -f "${target}" ]]
if compgen -G "${target}" > /dev/null
then
pushd "$(dirname "${target}")" || exit 1
7zz a -p'${{ inputs.encryptionSecret }}' -bso0 -bsp0 -t7z -ms=on -mhe=on "${{ steps.tempdir.outputs.directory }}/archive.7z" "$(basename "${target}")"