Fix Bash Brace Expansion

It bug appeared in Debian and Trisquel
This commit is contained in:
Jesús
2019-02-25 12:52:25 -05:00
parent 1b96328b2c
commit 204400b329
2 changed files with 19 additions and 2 deletions

18
scripts/vendor.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
run_vendor()
{
local LOCALDIR="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
local BASE="${LOCALDIR%scripts}" # input
rm -rf "$BASE"/output/{de,en,eo,fr}/vendor/
echo "$BASE"output/{de,en,eo,fr} | xargs -n 1 cp -rf "$BASE"/output/vendor
}
# ==============================================================================
# EXECUTION - START
# ==============================================================================
run_vendor "$@"