summaryrefslogtreecommitdiffstats
path: root/root/.profile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-07 17:33:17 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-07 17:33:17 +0100
commit07b25711d3e7cd95f2acc4f63d013bf814d95f5d (patch)
tree4cf1dc328ed6ba6069c3a67118dcb074a281fdb6 /root/.profile
parentposodobi.sh autounmask revert (diff)
downloadn-07b25711d3e7cd95f2acc4f63d013bf814d95f5d.tar
n-07b25711d3e7cd95f2acc4f63d013bf814d95f5d.tar.gz
n-07b25711d3e7cd95f2acc4f63d013bf814d95f5d.tar.bz2
n-07b25711d3e7cd95f2acc4f63d013bf814d95f5d.tar.lz
n-07b25711d3e7cd95f2acc4f63d013bf814d95f5d.tar.xz
n-07b25711d3e7cd95f2acc4f63d013bf814d95f5d.tar.zst
n-07b25711d3e7cd95f2acc4f63d013bf814d95f5d.zip
Diffstat (limited to 'root/.profile')
-rw-r--r--root/.profile4
1 files changed, 3 insertions, 1 deletions
diff --git a/root/.profile b/root/.profile
index 590eeee..de001c8 100644
--- a/root/.profile
+++ b/root/.profile
@@ -5,7 +5,9 @@ HISTFILESIZE=1000000000
shopt -s checkwinsize
function upload () {
chmod 0644 "$1"
- sftp -b- upload@upload <<< "put '$1' www/`[ '$2'x = x ] && echo $1 || echo $2`"
+ d=`[ '$2'x = x ] && echo $1 || echo $2`
+ sftp -b- upload@upload <<< "put '$1' www/$d"
+ echo https://upload.sijanec.eu./$d | xclip
}
function mcd () {
mkdir -p $@ && cd $@