Skip to content

Commit bdf0113

Browse files
Fix typos found by codespell
1 parent f7dde66 commit bdf0113

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The Ubuntu Forums "system-info" script queries the users computer and prepares a
55
- Creates the file `system-info.txt` at the base of the user's home directory.
66
- Masks all sensitive info, like IP addresses, MAC addresses, Full FQDN and Serial numbers, automatically in a meaningful way.
77
- The script displays the report results within the 'less' utility to review the results, one screen at a time. To navigate from there, press the space bar, left, right, up, down, page up or page down keys to navigate. If in a graphical terminal session, you can also use mouse navigation. Press the "q" key to exit "less" and continue. It will print the final report and offer to upload to pastebin site.
8-
- Offers to post the results to the Ubuntu `pastebinit` provider if that program is installed, and a sufficiently reliable internet connection is available. This is the easiest way to share the sanitized results with the Ubuntu Community for support. After succssful upload to the pastebin, it will both display and log the URL of the uploaded report (`~/system-info-link.log`), for you to copy and paste in your post on the Ubuntu Forums.
8+
- Offers to post the results to the Ubuntu `pastebinit` provider if that program is installed, and a sufficiently reliable internet connection is available. This is the easiest way to share the sanitized results with the Ubuntu Community for support. After successful upload to the pastebin, it will both display and log the URL of the uploaded report (`~/system-info-link.log`), for you to copy and paste in your post on the Ubuntu Forums.
99
- Future versions may have an option to create the archive `system-info.tar.gz` if the report exceeds 19.5 kB in size.
1010

1111

@@ -24,7 +24,7 @@ This will download the script, make it executable, and run it, all in a row.
2424
Or, from a GUI Desktop, this way:
2525

2626
1. [Download][1] the script
27-
2. In Nautilus or other file broswer, From File Properties, Permissions, Make it executable.
27+
2. In Nautilus or other file browser, From File Properties, Permissions, Make it executable.
2828
3. Run it from your file browser or a Run dialog from kdialog
2929

3030
## Install Script from Debian Package

system-info

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function CheckRoot()
116116
if [[ "$EUID" == 0 ]] || [ $UID -eq 0 ]
117117
then
118118
echo -e "$redback Do not run this script with sudo or as root$resetvid"
119-
echo -e "If your Linux ditribution installs with only a Root User as a default, "
119+
echo -e "If your Linux distribution installs with only a Root User as a default, "
120120
echo -e "please create another User that has the ability to run elevated commands. "
121121
PassPhrase
122122
#exit_code=106
@@ -268,7 +268,7 @@ function RefreshScript() {
268268

269269
sudo wget -N -t 5 -T 10 https://github.com/UbuntuForums/system-info/raw/main/system-info
270270
sudo chmod +x system-info
271-
echo -e "Script was refeshed."
271+
echo -e "Script was refreshed."
272272
nl
273273
unset DIR SOURCE
274274
}
@@ -329,7 +329,7 @@ function GetReleaseDescription()
329329
if [[ "$os_name" == "" ]]
330330
then
331331
echo -e "There was a problem determining the Release Description... "
332-
echo -e "Here is the raw outout of the release file(s) to determine manually:"
332+
echo -e "Here is the raw output of the release file(s) to determine manually:"
333333
grep --color=never '=' /etc/*release
334334
debug "GetReleaseDescription(). Dumped release file info. Condition failed." 1
335335
else
@@ -722,7 +722,7 @@ function FixNonAsciiVar() {
722722
VarContent=$2 # Global Var
723723

724724
# Check if field contains non ascii characters
725-
# Remember to set whatever the original passed varaible equal to $VarContent after the call
725+
# Remember to set whatever the original passed variable equal to $VarContent after the call
726726
# to catch the fixed return value.
727727
if [[ "$VarContent" == "*[!:ascii:]*" ]]
728728
then
@@ -823,7 +823,7 @@ function GetSb()
823823
if [ $check_mokutil -eq 0 ]
824824
then
825825
echo -e "\tThis would check / have checked if SecureBoot was enabled or not, "
826-
echo -e "\tand checks if the system BIOS was UEFI or Lagacy only BIOS, "
826+
echo -e "\tand checks if the system BIOS was UEFI or Legacy only BIOS, "
827827
echo -e "\tbut package mokutil was not installed. If you would like to check"
828828
echo -e "\tthis information, please install 'mokutil' and rerun script."
829829
else
@@ -844,7 +844,7 @@ function GetSb()
844844
elif [[ "$error_mokutil" == *"Command 'mokutil' not found"* ]] #
845845
then
846846
echo -e "\tThis would check / have checked if SecureBoot was enabled or not, "
847-
echo -e "\t and checks if the system BIOS was UEFI or Lagacy only BIOS, "
847+
echo -e "\t and checks if the system BIOS was UEFI or Legacy only BIOS, "
848848
echo -e "\tbut package mokutil was not installed. If you would like to check"
849849
echo -e "\tthis information, please install 'mokutil' and rerun script."
850850
else
@@ -874,7 +874,7 @@ function GetSb()
874874

875875
function GetMem()
876876
{
877-
# Gets memory information (pysical and swap). Called once by GetMachineInfo().
877+
# Gets memory information (physical and swap). Called once by GetMachineInfo().
878878
echo -e "${setansi}---------- Memory Information:$ransi"
879879
mem_stats=$(free -m)
880880
echo -e "$mem_stats"
@@ -902,7 +902,7 @@ function GetSwap () {
902902
echo -e " --- Info from '/proc/swaps'"
903903
echo -e "$swaps_info"
904904
nl
905-
echo -e " --- System Swapiness Settings"
905+
echo -e " --- System Swappiness Settings"
906906
echo -e "Valid swappiness settings are from $valid_settings . "
907907
echo -e "Current setting in '/proc/sys/vm/swappiness': $sw_proc "
908908
echo -e "Current configuration setting in '/etc/sysctl.conf file: "
@@ -1087,7 +1087,7 @@ function GetDiskInfo()
10871087
sudo fdisk -l 2>&1 | sed '/\/dev\/loop/,+3 d' 2> /dev/null | uniq
10881088
nl
10891089
echo -e "${setansi}---------- Disk/Partition Information From 'lsblk':$ransi"
1090-
# Note: sed replacement added to switch out non-ascii charaters of 'lsblk'.
1090+
# Note: sed replacement added to switch out non-ascii characters of 'lsblk'.
10911091
# 'paste.ubuntu.com' does not accept non-ascii characters
10921092
lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,MODEL | grep -v '/snap/' | sed 's/^[\|,`]-/\|_/g'
10931093
echo -e " ------- 'lsblk' information continued ..."
@@ -1455,7 +1455,7 @@ function GetGraphicsEnv()
14551455
echo -e " --- Graphics Environment Continued from 'various graphics ENVs' ----"
14561456
if [ "$XDG_CURRENT_DESKTOP" != "" ]
14571457
then
1458-
echo -e "The Current Configured Destop is: $XDG_CURRENT_DESKTOP "
1458+
echo -e "The Current Configured Desktop is: $XDG_CURRENT_DESKTOP "
14591459
else
14601460
echo -e "The Current Configured Desktop is: <Not Populated> "
14611461
fi
@@ -1531,7 +1531,7 @@ function GetGraphicsEnv()
15311531
}
15321532

15331533
function GetSoundDevices() {
1534-
# Retreive Sound device ID's
1534+
# Retrieve Sound device ID's
15351535
echo -e "${setansi}---------- Sound Device Information From 'lspci':$ransi"
15361536
sound_device_list=$(sudo -i lspci | \
15371537
grep --color=never -i -e 'audio ' | \
@@ -1922,7 +1922,7 @@ function GetUserInstalled()
19221922
user_installed=$(mktemp /tmp/UserInstalled-XXXXX)
19231923
# Use apt-mark to list all packages marked as manually installed.
19241924
apt-mark showmanual | sort -u > $manually_installed
1925-
# Check to see if defualt installed list exists
1925+
# Check to see if default installed list exists
19261926
# for prebuilt system images, it does not exist
19271927
if [ -f /var/log/installer/initial-status.gz ]
19281928
then
@@ -2310,7 +2310,7 @@ function ArchiveReport() {
23102310
fi
23112311
cwd=$(pwd) # Save current directory
23122312
cd $HOME
2313-
# Create Archive without any parent direcetories
2313+
# Create Archive without any parent directories
23142314
tar -czvf ${sname}.tar.gz ${sname}.txt
23152315
exit_code=$?
23162316
# Check if archive was created successfully (catch exit code)
@@ -2520,7 +2520,7 @@ function Paster()
25202520
debug "Paste_done: $paste_done" 1
25212521
if $paste_done
25222522
then
2523-
# Check $return_url for NULLL
2523+
# Check $return_url for NULL
25242524
if [ "$return_url" != "" ]
25252525
then
25262526
echo -e "Uploaded Report: ${startt}:" >> "$linklog"
@@ -2693,5 +2693,5 @@ exit $exit_code
26932693
# - Document logic flow
26942694
#
26952695
# Add DEBUG statements:
2696-
# - To be able to step through logic flow for maintenence.
2696+
# - To be able to step through logic flow for maintenance.
26972697
#

0 commit comments

Comments
 (0)