Explorar o código

- remove bashism; don't install config/* to the target

Bernhard Reutner-Fischer %!s(int64=15) %!d(string=hai) anos
pai
achega
9f9f820d40
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      extra/scripts/install_headers.sh

+ 1 - 2
extra/scripts/install_headers.sh

@@ -33,12 +33,11 @@ fi
 (
 (
 # We must cd, or else we'll prepend "$1" to filenames!
 # We must cd, or else we'll prepend "$1" to filenames!
 cd "$1" || exit 1
 cd "$1" || exit 1
-find ! -name '.' -a ! -path '*/.*'
+find ! -name '.' -a ! -path '*/.*' | sed -e 's/^\.\///' -e '/^config\//d'
 ) | \
 ) | \
 (
 (
 IFS=''
 IFS=''
 while read -r filename; do
 while read -r filename; do
-	filename="${filename#./}"
 	if test -d "$1/$filename"; then
 	if test -d "$1/$filename"; then
 		mkdir -p "$2/$filename" 2>/dev/null
 		mkdir -p "$2/$filename" 2>/dev/null
 	else
 	else