Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-28732 Copy to clipboard button copies script with HTML entities
  3. SAT-28943

[DEV] Copy to clipboard button copies script with HTML entities

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Sprint 140, Sprint 141

      When using the 'Copy to clipboard' button on the script that virt_who_configure gave me, it copied it to the clipboard with HTML entities. This causes an error when I try to run the script.

      Lines like

      [ "$1" = "$2" ] && return 1 || version_lte $1 $2

      actually show up as

      [ "$1" = "$2" ] && return 1 || version_lte $1 $2 

      and cause

      ./virt.sh: line 15: syntax error near unexpected token `;&' ./virt.sh: line 15: ` [ "$1" = "$2" ] && return 1 || version_lte $1 $2'

      DEV Tracker for https://issues.redhat.com/browse/SAT-28732

              rhn-engineering-lfu Lucy Fu
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Chris Roberts Chris Roberts
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: