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

# 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: