mybin

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

cpupload (187B)


      1 #!/bin/bash
      2 # cp file to upload directory
      3 
      4 FILE="$1"
      5 OFILE="${2:-$(basename $FILE)}"
      6 DEST=~browser2/uploads
      7 sudo cp -i "$FILE" "$DEST/$OFILE"
      8 sudo chown browser2:browser2 "$DEST/$OFILE"
      9