chiark / gitweb /
Bugfixes.
[userv-utils.git] / finger / install-confs
1 #!/bin/sh
2 set -e
3 destdir="$1"; shift
4 for f in "$@"; do install -m 644 -o root "$f" "$destdir/$f:new"; done
5 cd "$destdir"
6 for f in "$@"; do
7         if ! test -f "$f"; then
8                 echo installing new "$destdir/$f"
9                 mv -f "$f:new" "$f"
10         fi
11 done