summaryrefslogtreecommitdiff
path: root/plugins/symlink
blob: ec34cb4ae262cfc0644f40f9cd6dc889d0b29c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# symlink plugin
#
# ENVIRONMENT VARIABLES:
#	LINKDEST	known_hosts file to link to
#

set -e

[ -f "${LINKDEST}" ] && [ -r "${LINKDEST}" ]
ln -sf "${LINKDEST}" new

# vim:set ft=sh: