Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Oct 23, 2024
1 parent 4e6bdf7 commit 7feb99a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/enrich_metadata_alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi
#Fetch
pushd "$($TMPDIRS)" >/dev/null 2>&1
apk-static fetch "${ALPINE_PKG}" --allow-untrusted --no-cache --no-interactive --verbose --output="$(realpath .)"
unset APK_PKG ; APK_PKG="$(find "." -maxdepth 1 -type d -name "*.apk" 2>/dev/null \;)" && export APK_PKG="${APK_PKG}"
unset APK_PKG ; APK_PKG="$(find "." -maxdepth 1 -type f -name "*.apk" 2>/dev/null)" && export APK_PKG="${APK_PKG}"
if [[ -f "${APK_PKG}" ]] && [[ $(stat -c%s "${APK_PKG}") -gt 1024 ]]; then
#Extract
find "." -name "*.apk" -exec tar -xvf "{}" "usr/share" 2>/dev/null \;
Expand All @@ -44,6 +44,6 @@ fi
find "." -type f -regex ".*\.svg$" -print | sort -V | tail -n 1 | xargs -I "{}" rsync -achLv "{}" "${BINDIR}/${BIN}.alpine.icon.svg" 2>/dev/null
#Cleanup
unset ALPINE_PKG APK_PKG
rm -rf "$(realpath .)" && popd >/dev/null 2>&1
fi
rm -rf "$(realpath .)" && popd >/dev/null 2>&1
#-------------------------------------------------------#

0 comments on commit 7feb99a

Please sign in to comment.