Skip to content

Commit

Permalink
[fix] fixing curl save to file problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MunsMan committed Mar 30, 2023
1 parent 296535b commit cea684c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions feature/src/auto-forward/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ mkdir "${DOWNLOAD_DIR}"
# Downloading Binary File
if [ "$VERSION" = "latest" ];
then
curl -sL "https://github.com/munsman/autoForward/releases/latest/download/container_x86_64" >> "$DOWNLOAD_DIR/$BINARY"
echo "https://github.com/munsman/autoForward/releases/latest/download/container_x86_64"
curl -sL --output "$DOWNLOAD_DIR/$BINARY" "https://github.com/munsman/autoForward/releases/latest/download/container_x86_64"
else
curl -sL "https://github.com/MunsMan/autoForward/releases/download/${VERSION}/container_x86_64" >> "$DOWNLOAD_DIR/$BINARY"
echo "https://github.com/MunsMan/autoForward/releases/download/${VERSION}/container_x86_64"
curl -sL --output "$DOWNLOAD_DIR/$BINARY" "https://github.com/MunsMan/autoForward/releases/download/${VERSION}/container_x86_64"
fi

# Setting up the local Feature Directory
Expand Down Expand Up @@ -79,7 +81,7 @@ EOF

cd "${PROJECT_DIR}"
mv "${DOWNLOAD_DIR}/${BINARY}" "${PROJECT_DIR}/${BINARY}"
echo | ls
echo | ls -ls
chmod +x "${BINARY}"
chmod +x entrypoint.sh

Expand Down

0 comments on commit cea684c

Please sign in to comment.