@@ -65,7 +65,7 @@ version="${version#v}"
65
65
if [[ " $version " == " " ]]; then
66
66
version=" $( execrelative ./version.sh) "
67
67
fi
68
- version=" $( echo " $ version" | sed ' s/-.*// ' ) "
68
+ version=" ${ version// - */ } "
69
69
version+=" .$( date -u +%Y%m%d%H%M) "
70
70
71
71
# Check dependencies
@@ -87,24 +87,24 @@ cp "$(realpath scripts/installer/banner.bmp)" "$temp_dir/banner.bmp"
87
87
license_path=" $temp_dir /license.txt"
88
88
89
89
if [[ " $agpl " == 0 ]]; then
90
- cat << - EOF > "$license_path "
91
- This distribution of Coder includes some enterprise-licensed code which is not
92
- licensed under the AGPL license:
90
+ cat << -EOF > "$license_path "
91
+ This distribution of Coder includes some enterprise-licensed code which is not
92
+ licensed under the AGPL license:
93
93
94
- $( cat " $( realpath LICENSE.enterprise ) " | sed ' s/^/ /' )
94
+ $( sed ' s/^/ /' " $( realpath LICENSE.enterprise ) " )
95
95
96
96
97
97
98
- The non-enterprise code in this distribution is licensed under the AGPL license:
98
+ The non-enterprise code in this distribution is licensed under the AGPL license:
99
99
100
- $( cat " $( realpath LICENSE ) " | sed ' s/^/ /' )
100
+ $( sed ' s/^/ /' " $( realpath LICENSE ) " )
101
101
EOF
102
102
else
103
- cat << - EOF > "$license_path "
104
- This distribution of Coder is free software and is licensed under the AGPL
105
- license:
103
+ cat << -EOF > "$license_path "
104
+ This distribution of Coder is free software and is licensed under the AGPL
105
+ license:
106
106
107
- $( cat " $( realpath LICENSE ) " | sed ' s/^/ /' )
107
+ $( sed ' s/^/ /' " $( realpath LICENSE ) " )
108
108
EOF
109
109
fi
110
110
0 commit comments