diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-25 19:48:04 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-25 19:48:04 +0200 |
commit | 471874422a673331da662cd9d09c620ec986d382 (patch) | |
tree | 8425b0db793d27190ff290848c2e3227a587d0f2 /root/.bash_aliases | |
parent | b (diff) | |
parent | make.conf mpeg-4 licence (diff) | |
download | n-471874422a673331da662cd9d09c620ec986d382.tar n-471874422a673331da662cd9d09c620ec986d382.tar.gz n-471874422a673331da662cd9d09c620ec986d382.tar.bz2 n-471874422a673331da662cd9d09c620ec986d382.tar.lz n-471874422a673331da662cd9d09c620ec986d382.tar.xz n-471874422a673331da662cd9d09c620ec986d382.tar.zst n-471874422a673331da662cd9d09c620ec986d382.zip |
Diffstat (limited to 'root/.bash_aliases')
-rw-r--r-- | root/.bash_aliases | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases index 1ec2481..9d1b336 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -24,7 +24,7 @@ HISTSIZE=100000000 HISTFILESIZE=1000000000 function upload () { # chmod 0644 "$1" - d=`[ '$2'x = x ] && echo $1 || echo $2` + d=`[ "$2"x = x ] && echo $1 || echo $2` sftp -b- upload@upload.sijanec.eu <<< "put '$1' www/$d" grep '/$' <<<$d && d=$d`rev <<<$1 | cut -d/ -f1 | rev` ssh upload@upload.sijanec.eu chmod 0644 "www/$d" |