diff options
author | Akshay <[email protected]> | 2025-01-15 10:30:05 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2025-01-15 10:30:05 +0000 |
commit | f3aca012f1c0041cc6cb3fdb4a0a2ace4f29a326 (patch) | |
tree | a8c3e0691a0a940786471e45d49ab23cd4c34891 | |
parent | dad86b24e1e37bebd017a527806b8c56136d4344 (diff) |
-rw-r--r-- | scripts/up.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/up.nix b/scripts/up.nix index c4f7c7a..0217b6b 100644 --- a/scripts/up.nix +++ b/scripts/up.nix | |||
@@ -13,10 +13,10 @@ pkgs.writeScriptBin name | |||
13 | if [ -f "$1" ]; then | 13 | if [ -f "$1" ]; then |
14 | ext="''${1##*.}" | 14 | ext="''${1##*.}" |
15 | id="$id.$ext" | 15 | id="$id.$ext" |
16 | scp "$1" ferrn:~/www/nerd/uploads/"$id" | 16 | scp "$1" kombu:/var/www/uploads/"$id" |
17 | echo "https://u.peppe.rs/$id" | 17 | echo "https://cdn.oppi.li/$id" |
18 | echo "https://u.peppe.rs/$id" | ${xclip} -selection clipboard | 18 | echo "https://cdn.oppi.li/$id" | ${xclip} -selection clipboard |
19 | echo "https://u.peppe.rs/$id" | ${xclip} -i | 19 | echo "https://cdn.oppi.li/$id" | ${xclip} -i |
20 | else | 20 | else |
21 | echo "file does not exist" | 21 | echo "file does not exist" |
22 | fi | 22 | fi |