11 lines
182 B
Bash
Executable File
11 lines
182 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo -n "Upload to server [yes|NO]? "
|
|
read -r answer
|
|
|
|
if [ "$answer" == "yes" ]; then
|
|
echo -n "Uploading... "
|
|
scp "$@" && echo "DONE"
|
|
else
|
|
echo "NOT uploading!"
|
|
fi |