Skip to content

Commit

Permalink
Fixed recursive file name handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Nov 3, 2023
1 parent 6c581fc commit 0faa244
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions res/scripts/direct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ function upload_box() {
"https://app.vagrantup.com/api/v2/box/$ORG/$BOX/versions" && sleep 4 || \
{
printf "${T_BYEL} Version creation failed. [ $ORG $BOX $PROVIDER $ARCH $VERSION / RECURSION = $RECURSION ]${T_RESET}\n" >&2
sleep 20 ; exec "$0" "$1" $RECURSION
sleep 20 ; exec "$0" "$FILEPATH" $RECURSION
exit $?
}
}
Expand All @@ -371,7 +371,7 @@ function upload_box() {
"https://app.vagrantup.com/api/v2/box/$ORG/$BOX/version/$VERSION/provider/${PROVIDER}/${ARCH}" && sleep 4 || \
{
printf "${T_BYEL} Provider delete failed. [ $ORG $BOX $PROVIDER $ARCH $VERSION / RECURSION = $RECURSION ]${T_RESET}\n" >&2
sleep 20 ; exec "$0" "$1" $RECURSION
sleep 20 ; exec "$0" "$FILEPATH" $RECURSION
exit $?
}
}
Expand All @@ -384,7 +384,7 @@ function upload_box() {
"https://app.vagrantup.com/api/v2/box/$ORG/$BOX/version/$VERSION/providers" && sleep 4 || \
{
printf "${T_BYEL} Provider creation failed. [ $ORG $BOX $PROVIDER $ARCH $VERSION / RECURSION = $RECURSION ]${T_RESET}\n" >&2
sleep 20 ; exec "$0" "$1" $RECURSION
sleep 20 ; exec "$0" "$FILEPATH" $RECURSION
exit $?
}

Expand All @@ -398,7 +398,7 @@ function upload_box() {

if [ "$UPLOAD_PATH" == "" ] || [ "$UPLOAD_PATH" == "echo" ] || [ "$UPLOAD_CALLBACK" == "" ] || [ "$UPLOAD_CALLBACK" == "echo" ]; then
printf "\n${T_BYEL} The $FILENAME file failed to upload. [ $ORG $BOX $PROVIDER $ARCH $VERSION / RECURSION = $RECURSION ]${T_RESET}\n\n" >&2
sleep 20 ; exec "$0" "$1" $RECURSION
sleep 20 ; exec "$0" "$FILEPATH" $RECURSION
exit $?
fi

Expand All @@ -413,7 +413,7 @@ function upload_box() {
RESULT=$?
[ "$RESULT" != "0" ] && {
printf "\n${T_BYEL} The $FILENAME file failed to upload. [ $ORG $BOX $PROVIDER $ARCH $VERSION / RECURSION = $RECURSION ]${T_RESET}\n\n" >&2
sleep 20 ; exec "$0" "$1" $RECURSION
sleep 20 ; exec "$0" "$FILEPATH" $RECURSION
exit $?
}

Expand All @@ -431,7 +431,7 @@ function upload_box() {
"$UPLOAD_CALLBACK" ; } || \
{
printf "${T_BYEL} Upload failed. The callback returned an error. [ $ORG $BOX $PROVIDER $ARCH $VERSION / RECURSION = $RECURSION ]${T_RESET}\n" >&2
sleep 20 ; exec "$0" "$1" $RECURSION
sleep 20 ; exec "$0" "$FILEPATH" $RECURSION
exit $?
}

Expand Down

0 comments on commit 0faa244

Please sign in to comment.