2021-02-25 22:02:27 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Post install ybcon script
|
2021-02-25 17:57:49 +01:00
|
|
|
|
|
|
|
ln -sf /opt/bin/ybcon.sh /usr/bin/ybcon
|
2021-02-25 22:02:27 +01:00
|
|
|
|
2021-02-26 14:22:12 +01:00
|
|
|
ybconDir="/opt/etc/ybcon.d"
|
|
|
|
fishLoc="/usr/share/fish/vendor_completions.d"
|
2021-02-25 22:02:27 +01:00
|
|
|
bashcompleteLoc="/etc/bash_completion.d"
|
|
|
|
if [ -d $bashcompleteLoc ]; then
|
2021-02-26 14:22:12 +01:00
|
|
|
ln -sf "$ybconDir/bash-completion.sh" "$bashcompleteLoc/ybcon.sh"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "fish" ]; then
|
|
|
|
if [ ! -d $fishLoc ]; then
|
|
|
|
mkdir "$fishLoc"
|
|
|
|
fi
|
|
|
|
ln -sf "$ybconDir/fish-completion.fish" "$fishLoc/ybcon.fish"
|
2021-02-25 22:02:27 +01:00
|
|
|
fi
|