From 0d32c78b32acc5e0a23a9cc1967efd1f7d1a7d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 18 Jul 2023 16:26:48 +0200 Subject: b --- root/.bash_aliases | 1 + 1 file changed, 1 insertion(+) (limited to 'root') diff --git a/root/.bash_aliases b/root/.bash_aliases index abff120..cdef3c5 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -26,6 +26,7 @@ function upload () { # chmod 0644 "$1" 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" echo https://upload.sijanec.eu./$d | xclip } -- cgit v1.2.3