mirror of
https://github.com/gryf/mkinitramfs.git
synced 2025-12-18 20:10:24 +01:00
Added guard for nonexisting askpass/network down and so on
This commit is contained in:
@@ -50,7 +50,12 @@ done
|
||||
|
||||
if %s; then
|
||||
if [ ! -f ~/.cache/askpass ]; then
|
||||
wget "https://bitbucket.org/piotrkarbowski/better-initramfs/downloads/askpass.c"
|
||||
if ! wget "https://bitbucket.org/piotrkarbowski/better-initramfs/downloads/askpass.c"; then
|
||||
if ! wget "https://raw.githubusercontent.com/gryf/mkinitramfs/refs/heads/master/askpass.c"; then
|
||||
echo "Error: Unable to fetch the 'askpass.c'. Aborting" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
gcc -Os -static askpass.c -o ~/.cache/askpass
|
||||
rm askpass.c
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user