From bb015a20f508398c229aaa9a5c88e6c9e9fa2e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 1 Nov 2023 13:36:10 +0100 Subject: c --- root/.bash_aliases | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'root') diff --git a/root/.bash_aliases b/root/.bash_aliases index 65c81d7..d7730ea 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -23,10 +23,6 @@ function c () { gcc -g -Wall -Wextra -pedantic -Wformat -Wformat-security $@ -lm } alias pmbootstrap="pmbootstrap --as-root" -function upload () { - chmod 0664 "$1" - sftp -b- upload@4a.si <<< "put '$1' www/`[ '$2'x = x ] && echo $1 || echo $2`" -} HISTCONTORL=ignoreboth shopt -s histappend HISTSIZE=100000000 @@ -34,7 +30,10 @@ HISTFILESIZE=1000000000 function upload () { # chmod 0644 "$1" d=`[ "$2"x = x ] && echo $1 || echo $2` - sftp -b- upload@upload.sijanec.eu <<< "put '$1' www/$d" + sftp -b- upload@upload.sijanec.eu <