mirror of
https://github.com/gryf/mkinitramfs.git
synced 2026-10-06 13:40:35 +02:00
Added guard for nonexisting askpass/network down and so on
This commit is contained in:
1 parent
610cfdaca7
commit
578af86baa
1 file changed
+6
-1
+6
-1
@@ -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