From ab7a5a507e910a3a9d2343cddf082417f71b225f Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 24 Apr 2017 11:43:48 +0200 Subject: move untilport: l/5 -> k/5 --- lass/5pkgs/untilport/default.nix | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 lass/5pkgs/untilport/default.nix (limited to 'lass/5pkgs/untilport') diff --git a/lass/5pkgs/untilport/default.nix b/lass/5pkgs/untilport/default.nix deleted file mode 100644 index 61bcc2b89..000000000 --- a/lass/5pkgs/untilport/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ pkgs, ... }: - -pkgs.writeDashBin "untilport" '' - set -euf - - usage() { - echo 'untiport $target $port' - echo 'Sleeps until the destinated port is reachable.' - echo 'ex: untilport google.de 80 && echo "google is now reachable"' - } - - - if [ $# -ne 2 ]; then - usage - else - until ${pkgs.netcat-openbsd}/bin/nc -z "$@"; do sleep 1; done - fi -'' -- cgit v1.2.3