summarylogtreecommitdiffstats
path: root/volta-install.patch
diff options
context:
space:
mode:
Diffstat (limited to 'volta-install.patch')
-rw-r--r--volta-install.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/volta-install.patch b/volta-install.patch
new file mode 100644
index 000000000000..8498493100d9
--- /dev/null
+++ b/volta-install.patch
@@ -0,0 +1,61 @@
+--- volta-install.orig 2019-07-27 17:26:27.171234715 -0300
++++ volta-install.sh 2019-07-27 17:27:29.765694349 -0300
+@@ -88,14 +88,14 @@
+ for file in "$install_dir"/bin/*; do
+ if [ -e "$file" ] && ! [ -d "$file" ]; then
+ rm -f "$file"
+- ln -s "$shim_exec" "$file"
++ ln -sr "$shim_exec" "$file"
+ chmod 755 "$file"
+ fi
+ done
+
+ # re-link the non-user shims
+ for shim in "${main_shims[@]}"; do
+- ln -s "$shim_exec" "$install_dir/bin/$shim"
++ ln -sr "$shim_exec" "$install_dir/bin/$shim"
+ chmod 755 "$install_dir/bin/$shim"
+ done
+
+@@ -425,17 +425,25 @@
+ info 'Installing' "Volta locally after compiling with '--release'"
+ install_local "release" "$install_dir"
+ ;;
++ local)
++ info 'Installing' "Volta locally after compiling with '--release'"
++ install_local "release" "$install_dir"
++ ;;
+ *)
+- # assume anything else is a specific version
+- info 'Installing' "Volta version $version_to_install"
+- install_release "$version_to_install" "$install_dir"
++ # assume anything else is a either a file or a specific version
++ if [ -f "$version_to_install" ]; then
++ info 'Installing' "Volta locally from file $version_to_install"
++ install_from_file "$version_to_install" "$install_dir"
++ else
++ info 'Installing' "Volta version $version_to_install"
++ install_release "$version_to_install" "$install_dir"
++ fi
+ ;;
+ esac
+
+ if [ "$?" == 0 ]
+ then
+ create_symlinks "$install_dir" &&
+- update_profile "$install_dir" &&
+ info "Finished" 'installation. Open a new terminal to start using Volta!'
+ fi
+ }
+@@ -581,6 +589,11 @@
+ shift # shift off the argument
+ version_to_install="local-release"
+ ;;
++ --archive)
++ shift # shift off the argument
++ version_to_install="$1"
++ shift # shift off the value
++ ;;
+ --version)
+ shift # shift off the argument
+ version_to_install="$1"