Skip to content

Commit 5dcb5a1

Browse files
authored
Update inigo-gateway/install.sh (#145)
Sometimes the gateway binary is called `gateway` and sometimes it's `inigo_gateway` :/
1 parent d97f472 commit 5dcb5a1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

gateways/inigo-gateway/install.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,23 @@ download_binaries() {
5757
say ""
5858

5959
_gateway_outfile="./inigo_gateway"
60-
_gateway="$_dir/inigo_gateway"
60+
_gateway_primary="$_dir/inigo_gateway"
61+
_gateway_fallback="$_dir/gateway" # Fallback path
62+
63+
if [ -f "$_gateway_primary" ]; then
64+
_gateway="$_gateway_primary"
65+
elif [ -f "$_gateway_fallback" ]; then
66+
say "Found gateway binary at $_gateway_fallback (primary $_gateway_primary not found)"
67+
_gateway="$_gateway_fallback"
68+
else
69+
say "ERROR: Could not find gateway binary at $_gateway_primary or $_gateway_fallback in $_dir"
70+
say "Contents of $_dir:"
71+
ls -l "$_dir"
72+
exit 1
73+
fi
6174

6275
say "Moving $_gateway to $_gateway_outfile ..."
63-
mv "$_gateway" "$_gateway_outfile"
76+
ensure mv "$_gateway" "$_gateway_outfile"
6477

6578
_retval=$?
6679

0 commit comments

Comments
 (0)