blob: 0c39ab805e5bcc6dbc20815dbe472a20e0961ed8 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
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