Skip to content

Commit f2cd6f1

Browse files
Merge pull request #28 from xima-media/curl_error_output
feat: curl with "--fail" for improved error detection
2 parents 6ba8fb1 + b60ba31 commit f2cd6f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipe/reset_from_gitlab_artifact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
if (get('is_argument_host_the_same_as_local_host')) {
2222
$activeDir = get('deploy_path') . (testLocally('[ -e {{deploy_path}}/release ]') ? '/release' : '/current');
2323
$activeDir = testLocally('[ -e ' . $activeDir . ' ]') ? $activeDir : get('deploy_path');
24-
runLocally('cd ' . $activeDir . ' && curl --location --output artifacts.zip --header "PRIVATE-TOKEN: ' . $gitlabApiToken . '" "' . $url . '"');
24+
runLocally('cd ' . $activeDir . ' && curl --fail --location --output artifacts.zip --header "PRIVATE-TOKEN: ' . $gitlabApiToken . '" "' . $url . '"');
2525
runLocally('cd ' . $activeDir . ' && vendor/bin/dep db:rmdump {{argument_host}} --options=dumpcode:' . $dumpCode . ' --no-interaction');
2626
runLocally('cd ' . $activeDir . ' && unzip -o artifacts.zip');
2727
runLocally('cd ' . $activeDir . ' && mv -n .dep/database/dumps/*dumpcode=' . $dumpCode . '* {{db_storage_path_local}}/');

0 commit comments

Comments
 (0)