Skip to content

Commit

Permalink
feat: show debug infos in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt committed Sep 9, 2024
1 parent 1075b6c commit 802c404
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions setup-vehub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,24 @@ curl -s -L "https://vector.com$URL" \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) Chrome/115.0.5790.102' -o cli.zip

echo "Extracting veHub CLI..."
set +e
unzip -q cli.zip -d cli
UNZIP_STATUS=$?
set -e

# Debugging information in case of failure
if [ $UNZIP_STATUS -ne 0 ]; then
echo "Error: Failed to unzip the cli.zip file."
# Show file size
echo "File size of cli.zip:"
stat cli.zip

# Show hex dump of the first few bytes
echo "Hex dump of cli.zip content (first 256 bytes):"
xxd -l 256 cli.zip

exit 1
fi

# Make the binary executable
chmod +x cli/vehub
Expand Down

0 comments on commit 802c404

Please sign in to comment.