labs: fix cp on OS X

The cp command that comes with OS X does not know the -u option. Use -f
instead.

Change-Id: Ia943f2af924e9e17045c4507ab8bafd1eaf98f3c
This commit is contained in:
Roger Luethi 2015-03-29 11:36:18 +02:00
parent 0a86fa84e0
commit a5bc91e170

View File

@ -44,7 +44,7 @@ REMOTE_TOP_DIR=$(get_remote_top_dir)
EXE_DIR_NAME=test_tmp
mkdir -p "$TOP_DIR/$EXE_DIR_NAME"
cp -u "$SCRIPT_SRC" "$TOP_DIR/$EXE_DIR_NAME"
cp -f "$SCRIPT_SRC" "$TOP_DIR/$EXE_DIR_NAME"
if [[ "$REMOTE_TOP_DIR" = "/home/osbash" ]]; then
# Not using a shared folder, we need to scp the script to the target node