blob: 482709c40afaaead278ed926864445a8cae21169 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7ci_root="$(readlink -f "$(dirname "$0")/../..")"
8source "$ci_root/utils.sh"
9
10if ! ls $project_filer/ci-scripts/
11then
12 echo "make sure /arm is mounted, if it is not, it can be mounted with the following command:" >&2
13 echo "sudo sshfs [USER]@login1.euhpc2.arm.com:/arm /arm -o allow_other,reconnect" >&2
14 echo "note that the euhpc and euhpc2 have different /arm mounts" >&2
15 exit 1
16fi
17
18COMMAND="cp $ci_root/script/scratch_scripts/* $project_filer/ci-scripts/"
19FILES=`ls -al "$ci_root"/script/scratch_scripts/*`
20
21echo "files to be copied:"
22echo "$FILES"
23echo ""
24echo "####DANGER### POTENTIAL FOR DAMAGE, CHECK THIS COMMAND"
25echo "command to be run: \"$COMMAND\""
26read -p "Run this command [Y/n]: "
27echo
28if [[ $REPLY =~ ^[Yy]$ ]]
29then
30 eval "$COMMAND"
31fi