blob: 43428546a2b6937da80680adbeff246c57789550 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
if [[ ! -e '{{launcher}}' ]]; then
echo >&2 'Not modifying {{target}} because {{launcher}} is not installed.'
exit 0
fi
if [[ ! -L '{{target}}' ]]; then
echo >&2 'Not modifying {{target}} because it is not a symlink.'
exit 0
fi
# Modify symlink so it points to the launcher script
exec ln -fnsv '{{launcher}}' '{{target}}'
|