[install-guide/f21-branch] make the ps example a little more demonstrative
Pete Travis
immanetize at fedoraproject.org
Sun Dec 21 05:35:58 UTC 2014
commit 4e1484662ba9920ba1c8a6b59a0a941c7151fccb
Author: Pete Travis <immanetize at fedoraproject.org>
Date: Sat Dec 20 22:34:40 2014 -0700
make the ps example a little more demonstrative
en-US/Preparing_for_Installation.xml | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/en-US/Preparing_for_Installation.xml b/en-US/Preparing_for_Installation.xml
index 4fedcdf..ce74649 100644
--- a/en-US/Preparing_for_Installation.xml
+++ b/en-US/Preparing_for_Installation.xml
@@ -77,8 +77,8 @@
Change to the directory containing the downloaded files.
</para>
<programlisting>
-<prompt>></prompt> <command>cd $HOME\Downloads\</command>
-<prompt>></prompt> <command>ls</command>
+<prompt>></prompt> <command>cd $HOME\Downloads\</command>
+<prompt>></prompt> <command>ls</command>
<![CDATA[
Directory: C:\Users\Pete\Downloads
@@ -94,10 +94,10 @@ Mode LastWriteTime Length Name
Load the resources required to calculate the checksum.
</para>
<screen>
-<command><prompt>></prompt> $image = "Fedora-Server-DVD-x86_64-21.iso"</command>
-<command><prompt>></prompt> $checksum_file = "Fedora-Server-21-x86_64-CHECKSUM"</command>
-<command><prompt>></prompt> $sha256 = New-Object -TypeName System.Security.Cryptography.sha256CryptoServiceProvider</command>
-<command><prompt>></prompt> $exepected_checksum = ((Get-Content $checksum_file | Select-String -Pattern $image) -split " ")[0]</command>
+<command><prompt>></prompt> $image = "Fedora-Server-DVD-x86_64-21.iso"</command>
+<command><prompt>></prompt> $checksum_file = "Fedora-Server-21-x86_64-CHECKSUM"</command>
+<command><prompt>></prompt> $sha256 = New-Object -TypeName System.Security.Cryptography.sha256CryptoServiceProvider</command>
+<command><prompt>></prompt> $exepected_checksum = ((Get-Content $checksum_file | Select-String -Pattern $image) -split " ")[0]</command>
</screen>
</step>
<step>
@@ -105,7 +105,7 @@ Mode LastWriteTime Length Name
Calculate the downloaded image's checksum. This will take a while!
</para>
<screen>
-<command><prompt>></prompt> $download_checksum = [System.BitConverter]::ToString($sha256.ComputeHash([System.IO.File]::ReadAllBytes("$PWD\$image")))</command>
+<command><prompt>></prompt> $download_checksum = [System.BitConverter]::ToString($sha256.ComputeHash([System.IO.File]::ReadAllBytes("$PWD\$image")))</command>
</screen>
</step>
<step>
@@ -113,7 +113,9 @@ Mode LastWriteTime Length Name
Compare the calculated checksum to the expected checksum.
</para>
<programlisting>
-<prompt>></prompt> if ( $download_checksum -replace '-', '' -eq "$expected_checksum" ) {
+<prompt>></prompt> echo "Download Checksum: $download_checksum"
+<prompt>></prompt> echo "Expected Checksum: $expected_checksum"
+<prompt>></prompt> if ( $download_checksum -replace '-', '' -eq "$expected_checksum" ) {
echo "Checksum test passed!"
} else {
echo "Checksum test failed."
More information about the docs-commits
mailing list