Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a50376b

Browse files
committed
chore: tidy
1 parent aa9af6a commit a50376b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/build_windows_installer.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ version="${version#v}"
6565
if [[ "$version" == "" ]]; then
6666
version="$(execrelative ./version.sh)"
6767
fi
68-
version="$(echo "$version" | sed 's/-.*//')"
68+
version="${version//-*/}"
6969
version+=".$(date -u +%Y%m%d%H%M)"
7070

7171
# Check dependencies
@@ -87,24 +87,24 @@ cp "$(realpath scripts/installer/banner.bmp)" "$temp_dir/banner.bmp"
8787
license_path="$temp_dir/license.txt"
8888

8989
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:
9393
94-
$(cat "$(realpath LICENSE.enterprise)" | sed 's/^/ /')
94+
$(sed 's/^/ /' "$(realpath LICENSE.enterprise)")
9595
9696
9797
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:
9999
100-
$(cat "$(realpath LICENSE)" | sed 's/^/ /')
100+
$(sed 's/^/ /' "$(realpath LICENSE)")
101101
EOF
102102
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:
106106
107-
$(cat "$(realpath LICENSE)" | sed 's/^/ /')
107+
$(sed 's/^/ /' "$(realpath LICENSE)")
108108
EOF
109109
fi
110110

0 commit comments

Comments
 (0)