File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ RUSTC_TRIPLES=(
47
47
x86_64-unknown-linux-gnu
48
48
)
49
49
50
+ is_nightly () {
51
+ if [ x" $TARGET_VERSION " == x" nightly" -a " $NIGHTLY_DATE " ]; then
52
+ true
53
+ else
54
+ false
55
+ fi
56
+ }
57
+
50
58
download () {
51
59
echo " download $@ "
52
60
curl --fail -# -O $@
@@ -55,7 +63,7 @@ download() {
55
63
dlfile () {
56
64
component=" $1 "
57
65
triple=" $2 "
58
- if [ x " $TARGET_VERSION " == x " nightly " -a " $NIGHTLY_DATE " ] ; then
66
+ if is_nightly ; then
59
67
download " https://static.rust-lang.org/dist/$NIGHTLY_DATE /$component -$TARGET_VERSION -$triple .tar.gz"
60
68
else
61
69
download " https://static.rust-lang.org/dist/$component -$TARGET_VERSION -$triple .tar.gz"
@@ -100,7 +108,7 @@ cargo_filename() {
100
108
}
101
109
102
110
download_files () {
103
- if [ x " $TARGET_VERSION " == x " nightly " -a " $NIGHTLY_DATE " ] ; then
111
+ if is_nightly ; then
104
112
download " https://static.rust-lang.org/dist/$NIGHTLY_DATE /$CHANNEL_FILE "
105
113
else
106
114
download " https://static.rust-lang.org/dist/$CHANNEL_FILE "
You can’t perform that action at this time.
0 commit comments