Merge remote-tracking branch 'qubesos/pr/18'

* qubesos/pr/18:
  filename sanitization
This commit is contained in:
Marek Marczykowski-Górecki 2016-03-13 03:38:16 +01:00
commit 57f259700c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -18,7 +18,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
VERSION=2.4
VERSION=2.5
COPY2VM="dom0"
SUPPORT_FILES=0
@ -103,7 +103,7 @@ XL_VTX=`cat $TEMP_DIR/xl-info |grep xen_caps | grep hvm`
XL_VTD=`cat $TEMP_DIR/xl-info |grep virt_caps |grep hvm_directio`
PCRS=`find /sys/devices/ -name pcrs`
FILENAME="Qubes-HCL-${BRAND// /_}-${PRODUCT// /_}-$DATE"
FILENAME="Qubes-HCL-${BRAND//+([^[:alnum:]])/_}-${PRODUCT//+([^[:alnum:]])/_}-$DATE"
if [[ $XL_VTX ]]
then