Skip to content

Instantly share code, notes, and snippets.

@Gottox
Created October 13, 2014 08:54
Show Gist options
  • Save Gottox/3a82772ea035e14d3989 to your computer and use it in GitHub Desktop.
Save Gottox/3a82772ea035e14d3989 to your computer and use it in GitHub Desktop.
diff --git a/common/environment/setup/install.sh b/common/environment/setup/install.sh
index 86394ea..081f051 100644
--- a/common/environment/setup/install.sh
+++ b/common/environment/setup/install.sh
@@ -13,10 +13,22 @@ _noglob_helper() {
}
# Apply _noglob to v* commands
-for cmd in vinstall vcopy vmove vmkdir vbin vman vdoc vconf vsconf vlicense; do
+for cmd in vinstall vcopy vmove vmkdir vbin vman vdoc vconf vsconf vlicense vsv; do
alias ${cmd}="set -f; _noglob_helper _${cmd}"
done
+_vsv() {
+ local file="$1"
+
+ if [ $# -lt 1 ]; then
+ msg_red "$pkgver: vbin: 1 argument expected: <file>\n"
+ return 1
+ fi
+
+ vmkdir etc/sv
+ vcopy "$file" etc/sv
+}
+
_vbin() {
local file="$1" targetfile="$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment