summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-07-18 20:32:55 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-07-18 20:32:55 +0200
commit407415fd03e875fe24538a655c758b165e799697 (patch)
treeb14b84f4f3e9859cd8ae020b38b288d854833b79 /root
parentmerge c b (diff)
downloadn-407415fd03e875fe24538a655c758b165e799697.tar
n-407415fd03e875fe24538a655c758b165e799697.tar.gz
n-407415fd03e875fe24538a655c758b165e799697.tar.bz2
n-407415fd03e875fe24538a655c758b165e799697.tar.lz
n-407415fd03e875fe24538a655c758b165e799697.tar.xz
n-407415fd03e875fe24538a655c758b165e799697.tar.zst
n-407415fd03e875fe24538a655c758b165e799697.zip
Diffstat (limited to '')
-rw-r--r--root/.bash_aliases2
1 files changed, 1 insertions, 1 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases
index cdef3c5..a5ba578 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"