File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,23 @@ download_binaries() {
57
57
say " "
58
58
59
59
_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
61
74
62
75
say " Moving $_gateway to $_gateway_outfile ..."
63
- mv " $_gateway " " $_gateway_outfile "
76
+ ensure mv " $_gateway " " $_gateway_outfile "
64
77
65
78
_retval=$?
66
79
You can’t perform that action at this time.
0 commit comments