blob: 8498493100d9b3cda28b813d4ef2f902dc1ad992 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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"
|