Fix Bash Brace Expansion
It bug appeared in Debian and Trisquel
This commit is contained in:
18
scripts/vendor.sh
Normal file
18
scripts/vendor.sh
Normal 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 "$@"
|
||||
Reference in New Issue
Block a user