summaryrefslogtreecommitdiff
path: root/test/lsrc-hostname.t
blob: 9170c74dafceeceefaaf726473613e3c6c919d6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
  $ . "$TESTDIR/helper.sh"

Should include entries that match hostname

  $ touch .dotfiles/example
  > mkdir .dotfiles/host-$(hostname)
  > touch .dotfiles/host-$(hostname)/h-example
  > mkdir .dotfiles/host-not-hostname
  > touch .dotfiles/host-not-hostname/nh-example

  $ lsrc
  /*/.example:/*/.dotfiles/example (glob)
  /*/.h-example:/*/.dotfiles/host-*/h-example (glob)