mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
MANIFEST_PLACEHOLER_REPLACER: removed wrong hash return
This commit is contained in:
parent
b2c314f759
commit
d692e18bd3
|
@ -87,9 +87,6 @@ get_hash() {
|
||||||
if [ "$use_cache" == "true" ] && [ -f "$cache_file" ]; then
|
if [ "$use_cache" == "true" ] && [ -f "$cache_file" ]; then
|
||||||
# Try to retrieve hash from cache
|
# Try to retrieve hash from cache
|
||||||
hash=$(grep "^$url " "$cache_file" | cut -d ' ' -f2)
|
hash=$(grep "^$url " "$cache_file" | cut -d ' ' -f2)
|
||||||
if [ -n "$hash" ]; then
|
|
||||||
echo "Cache file exists, using cached hash for $url"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If hash is not found in cache, calculate it
|
# If hash is not found in cache, calculate it
|
||||||
|
|
|
@ -19,7 +19,8 @@ else
|
||||||
rm -f "placeholders.cache"
|
rm -f "placeholders.cache"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -rp "Do you want to clear the build cache?\nKeeping the build cache can speed up the build process, but it might cause issues and should be cleared occasionally [y/N] " clear_cache_input
|
echo "Do you want to clear the build cache?"
|
||||||
|
read -rp "Keeping the build cache can speed up the build process, but it might cause issues and should be cleared occasionally [y/N] " clear_cache_input
|
||||||
clear_cache_input=${clear_cache_input:-N}
|
clear_cache_input=${clear_cache_input:-N}
|
||||||
if [[ "$clear_cache_input" =~ ^[Yy]$ ]]; then
|
if [[ "$clear_cache_input" =~ ^[Yy]$ ]]; then
|
||||||
# User chose to clear the build cache
|
# User chose to clear the build cache
|
||||||
|
|
Loading…
Reference in a new issue