From 2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 12 Jul 2023 00:14:24 +0200 Subject: =?UTF-8?q?dejanski=20c=20(prej=C5=A1nji=20je=20bil=20pravzaprav?= =?UTF-8?q?=20b)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- root/.bash_aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'root/.bash_aliases') diff --git a/root/.bash_aliases b/root/.bash_aliases index 1e766a8..5828e86 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -23,9 +23,10 @@ shopt -s histappend HISTSIZE=100000000 HISTFILESIZE=1000000000 function upload () { - chmod 0644 "$1" + # chmod 0644 "$1" d=`[ '$2'x = x ] && echo $1 || echo $2` sftp -b- upload@upload.sijanec.eu <<< "put '$1' www/$d" + ssh upload@upload.sijanec.eu chmod 0644 "www/$d" echo https://upload.sijanec.eu./$d | xclip } function mcd () { -- cgit v1.2.3