3428879918
The common prefixes in these scripts indicate that they should really be in directories and not the toplevel. I also provide a helper script in $BIN to assist in calling them on the target VMs Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
20 lines
394 B
Bash
Executable File
20 lines
394 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
BIN=$HOME/bin
|
|
SCRIPTS=(grub-list.zsh setup.zsh setup/ run/)
|
|
|
|
function install_script() {
|
|
ssh $1 mkdir -p bin/{setup,run}
|
|
echo -n "$2 Copying files ..."
|
|
for script in $SCRIPTS; do
|
|
scp -qr $BIN/$script $1:bin/
|
|
done
|
|
ssh $1 cp bin/setup.zsh bin/run.zsh
|
|
echo " done"
|
|
}
|
|
|
|
tags=($(python $BIN/colors/vm.py $*))
|
|
for ((i=1; i<=${#@}; i++)); do
|
|
install_script ${@[i]} ${tags[i]}
|
|
done
|