mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 12:11:19 +03:00
Simplified how built shlink version is found out
This commit is contained in:
parent
82f41de87b
commit
b2a63f734a
1 changed files with 1 additions and 3 deletions
4
build.sh
4
build.sh
|
@ -47,9 +47,7 @@ rm -rf config/params/{*,.gitignore}
|
|||
rm -rf config/autoload/{{,*.}local.php{,.dist},.gitignore}
|
||||
|
||||
# Update shlink version in config
|
||||
latestShlinkVersion=$(git tag -l --sort=-v:refname | head -n 1)
|
||||
computedVersion=${latestShlinkVersion:1:${#latestShlinkVersion}}
|
||||
sed -i "s/%SHLINK_VERSION%/${computedVersion}/g" config/autoload/app_options.global.php
|
||||
sed -i "s/%SHLINK_VERSION%/${version}/g" config/autoload/app_options.global.php
|
||||
|
||||
# Compressing file
|
||||
rm -f "${projectdir}"/build/shlink_${version}_dist.zip
|
||||
|
|
Loading…
Add table
Reference in a new issue