| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_doIdentityTexts { |
| |
| |
| |
| for FILE in $FILES; do |
| |
| |
| render_getIdentityDefs |
| |
| |
| cli_printMessage "`gettext "Saved as"`: $FILE" |
| cat $INSTANCE > $FILE |
| |
| |
| if [[ -a $INSTANCE ]];then |
| rm $INSTANCE |
| fi |
| |
| |
| |
| if [[ ${#ACTIONS[@]} -lt 1 ]];then |
| continue |
| fi |
| |
| |
| for ACTION in "${ACTIONS[@]}"; do |
| |
| if [[ "$ACTION" == '' ]];then |
| continue |
| fi |
| |
| case "$ACTION" in |
| |
| formatText:* ) |
| render_doIdentityTextFormats "$FILE" "$ACTION" |
| ;; |
| |
| esac |
| |
| done |
| |
| echo '----------------------------------------------------------------------' |
| |
| done \ |
| | awk 'BEGIN {FS=": "} \ |
| { if ( $0 ~ /^-+$/ ) print $0; else \ |
| printf "%s: \t%s\n", $1, $2 }' |
| |
| } |