logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

unlink.sh (402B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. target="$(dirname "$0")/../cmd/unlink"
  5. plans=2
  6. . "$(dirname "$0")/tap.sh"
  7. touch unlink-this
  8. t basic 'unlink-this' ''
  9. rm -f unlink-this || exit 1
  10. t --exit=1 enoent /var/empty/e/no/ent "unlink: error: Failed unlinking '/var/empty/e/no/ent': No such file or directory
  11. "