Skip to content
This repository was archived by the owner on Mar 23, 2022. It is now read-only.

Commit

Permalink
vagrant-scp.sh: use non-zero exit code in case of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miguno committed Jan 19, 2015
1 parent 411ed85 commit e4fc6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sh/vagrant-scp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ if [ -z "$VAGRANT_HOSTNAME" ]; then
fi

SCP_OPTIONS=`vagrant ssh-config $VAGRANT_HOSTNAME | awk -v ORS=" " '{print "-o " $1 "=" $2}'`
scp $SCP_OPTIONS "$@" || echo "ERROR: Transfer failed."
scp $SCP_OPTIONS "$@" || echo "ERROR: Transfer failed." ; exit 1

0 comments on commit e4fc6aa

Please sign in to comment.