+i3up, fix release_tmp
This commit is contained in:
parent
0acb1a0d9d
commit
b1c3f103b7
2 changed files with 8 additions and 5 deletions
3
i3up
Executable file
3
i3up
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
i3 move workspace to output up
|
10
release_tmp
10
release_tmp
|
@ -1,15 +1,15 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
file="$1"
|
||||
host=home.schottelius.org
|
||||
dir=public_html/temp/
|
||||
url="http://home.schottelius.org/~nico/temp"
|
||||
host=staticweb.ungleich.ch
|
||||
dir=/home/services/www/nico/www.nico.schottelius.org/www/temp
|
||||
url="http://www.nico.schottelius.org/temp"
|
||||
|
||||
[ -z "$file" ] && exit 1
|
||||
|
||||
bfile="$(basename "$file")"
|
||||
|
||||
scp "$file" "${host}:$dir"
|
||||
ssh $host "chmod a+r \"$dir/$bfile\""
|
||||
scp "$file" "${host}:${dir}"
|
||||
ssh "$host" "chmod a+r \"$dir/$bfile\""
|
||||
|
||||
echo "Pre-released ${url}/${bfile}"
|
||||
|
|
Loading…
Reference in a new issue