nix-setup/pushfile.script.nix

11 lines
241 B
Nix
Raw Permalink Normal View History

2024-09-30 17:57:30 +02:00
with import <nixpkgs> {};
pkgs.writeShellScriptBin "pushfile" ''
#!/bin/bash
echo pushing files to data.tudbut.de:
scp -P 23 $@ root@tudbut.de:/var/www/html
for f in $@ ; do
echo "https://data.tudbut.de/$(basename $f)"
done
''