mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 08756242d07e2c2e504bce1804f26818c0272a1d
parent 4af6be5baba8c269a009d7f0d50c1dee3bd02db9
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 10 Dec 2016 20:03:01 +0100

cpupload

Diffstat:
cpupload | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/cpupload b/cpupload @@ -1,8 +1,9 @@ #!/bin/bash -# move file to upload directory +# cp file to upload directory FILE="$1" -OFILE=${2:-$FILE} -sudo mv -i "$FILE" "~browser2/uploads/$OFILE" -sudo chown browser2:browser2 "~browser2/uploads/$OFILE" +OFILE="${2:-$FILE}" +DEST=~browser2/uploads +sudo cp -i "$FILE" "$DEST/$OFILE" +sudo chown browser2:browser2 "$DEST/$OFILE"