Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-4599

Forklift documentation README copy command icon doubles $$

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.11.0
    • Documentation
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • True
    • Low

      Description of problem:

      First of all I'm not a Doc guys, just QE. Trying to follow the procedure to create documentation to verify some doc bugs I reported.

      Following "Building a document preview"

      On step 2. we hit two issues:

      If we you're lazy like me, and click on  the copy icon on the right corner of the command, it also copies the "$",  paste in bash hit enter get the below error, notice it happens due to doubling  $ (forklift-documentation$ $)

      tshefi@tshefi-thinkpadp1gen7:~/forklift-documentation$ $ for i in .jekyll-cache _site; do mkdir ${i} && chmod 777 ${i}; done
      bash: syntax error near unexpected token `do'
      

      Once you remove one of the $, the command doesn't fail with "bash: syntax error near unexpected token `do'".  It then fails due to the next issue.

      Second issue I happened to have some data under .jekyll-cache   maybe someone left it by mistake or he git config to ignore the folder, first of all the folder exists so why create it, but it also has data why I assume shouldn't be there. 

      ll .jekyll-cache/Jekyll/Cache/Jekyll--Cache/b7/
      total 8
      -rw-r--r--. 1 tshefi tshefi 5606 Feb 23 14:10 9606fb3afea5bd1609ed40b622142f1c98125abcfe89a76a661b0e8e343910

      I don't know if the content above should be cleared, regenerated by each use running the command then I'd change to, which deletes both folder then recreates them empty. 

      for i in .jekyll-cache _site; do rm -rf "$i" && mkdir -m 777 "$i"; done'

              rhn-support-anarnold A Arnold
              tshefi@redhat.com Tzach Shefi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: