Sha256: 846e0ded8e0540d9f9415beafa1a550f6f3251fb831a49710f3fd43e8ed96ad3
Contents?: true
Size: 1.85 KB
Versions: 7
Compression:
Stored size: 1.85 KB
Contents
#!/bin/bash #/************************************************************************** #* This program is free software; you can redistribute it and/or modify * #* it under the terms of the WTFPL 2.0 or later, see * #* http://www.wtfpl.net/about/ * #* * #* This program is distributed in the hope that it will be useful, * #* but WITHOUT ANY WARRANTY; without even the implied warranty of * #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * #* * #***************************************************************************/ # A dialog to override configuration options TITLE="Override post-processor configuration" # The options are the configuration variables which can be unset. CONF=$(zenity --title "$TITLE" --text "Deselect options to disable.\n<b>Esc and Cancel</b> terminate the post-processor."\ --height 450 --list --checklist --column 'set' --column 'Option' --column '' \ TRUE GROUP_SIGS Signature\ TRUE CUSTOM_HEADERS "Custom Headers"\ TRUE NO_ARCHIVE_GROUPS "No Archive"\ TRUE VFY_URLS "Correct URLs"\ TRUE DEBUG_LOG Log) if [ $? == 0 ] then IFS="|" read -ra C_ARR <<< $CONF CONF='' # -------------> # echo ${C_ARR[@]} # <------------- # for c in GROUP_SIGS CUSTOM_HEADERS NO_ARCHIVE_GROUPS VFY_URLS DEBUG_LOG for c in GROUP_SIGS CUSTOM_HEADERS NO_ARCHIVE_GROUPS DEBUG_LOG do # disable only the options which are missing in # the Zenity return value disable=1 for o in "${C_ARR[@]}" do if [ "$o" == "$c" ] then disable= fi done if [ $disable ] then CONF="$CONF $c" fi done # signal the fields to disable (others will be ignored) echo $CONF else exit 1 fi
Version data entries
7 entries across 7 versions & 1 rubygems