Skip to content

Commit aaada6e

Browse files
Fix typos found by codespell
1 parent 06166b4 commit aaada6e

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
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
[1]: https://github.com/UbuntuForums/system-info/raw/main/system-info

system-info

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

260260
wget -N -t 5 -T 10 https://github.com/UbuntuForums/system-info/raw/main/system-info
261261
chmod +x system-info
262-
echo -e "Script was refeshed."
262+
echo -e "Script was refreshed."
263263
nl
264264
unset DIR SOURCE
265265
}
@@ -320,7 +320,7 @@ function GetReleaseDescription()
320320
if [[ "$os_name" == "" ]]
321321
then
322322
echo -e "There was a problem determining the Release Description... "
323-
echo -e "Here is the raw outout of the release file(s) to determine manually:"
323+
echo -e "Here is the raw output of the release file(s) to determine manually:"
324324
grep --color=never '=' /etc/*release
325325
debug "GetReleaseDescription(). Dumped release file info. Condition failed." 1
326326
else
@@ -713,7 +713,7 @@ function FixNonAsciiVar() {
713713
VarContent=$2 # Global Var
714714

715715
# Check if field contains non ascii characters
716-
# Remember to set whatever the original passed varaible equal to $VarContent after the call
716+
# Remember to set whatever the original passed variable equal to $VarContent after the call
717717
# to catch the fixed return value.
718718
if [[ "$VarContent" == "*[!:ascii:]*" ]]
719719
then
@@ -803,7 +803,7 @@ function GetSb()
803803
if [ $check_mokutil -eq 0 ]
804804
then
805805
echo -e "\tThis would check / have checked if SecureBoot was enabled or not, "
806-
echo -e "\tand checks if the system BIOS was UEFI or Lagacy only BIOS, "
806+
echo -e "\tand checks if the system BIOS was UEFI or Legacy only BIOS, "
807807
echo -e "\tbut package mokutil was not installed. If you would like to check"
808808
echo -e "\tthis information, please install 'mokutil' and rerun script."
809809
else
@@ -824,7 +824,7 @@ function GetSb()
824824
elif [[ "$error_mokutil" == *"Command 'mokutil' not found"* ]] #
825825
then
826826
echo -e "\tThis would check / have checked if SecureBoot was enabled or not, "
827-
echo -e "\t and checks if the system BIOS was UEFI or Lagacy only BIOS, "
827+
echo -e "\t and checks if the system BIOS was UEFI or Legacy only BIOS, "
828828
echo -e "\tbut package mokutil was not installed. If you would like to check"
829829
echo -e "\tthis information, please install 'mokutil' and rerun script."
830830
else
@@ -854,7 +854,7 @@ function GetSb()
854854

855855
function GetMem()
856856
{
857-
# Gets memory information (pysical and swap). Called once by GetMachineInfo().
857+
# Gets memory information (physical and swap). Called once by GetMachineInfo().
858858
echo -e "${setansi}---------- Memory Information:$ransi"
859859
mem_stats=$(free -m)
860860
echo -e "$mem_stats"
@@ -882,7 +882,7 @@ function GetSwap () {
882882
echo -e " --- Info from '/proc/swaps'"
883883
echo -e "$swaps_info"
884884
nl
885-
echo -e " --- System Swapiness Settings"
885+
echo -e " --- System Swappiness Settings"
886886
echo -e "Valid swappiness settings are from $valid_settings . "
887887
echo -e "Current setting in '/proc/sys/vm/swappiness': $sw_proc "
888888
echo -e "Current configuration setting in '/etc/sysctl.conf file: "
@@ -1067,7 +1067,7 @@ function GetDiskInfo()
10671067
sudo fdisk -l 2>&1 | sed '/\/dev\/loop/,+3 d' 2> /dev/null | uniq
10681068
nl
10691069
echo -e "${setansi}---------- Disk/Partition Information From 'lsblk':$ransi"
1070-
# Note: sed replacement added to switch out non-ascii charaters of 'lsblk'.
1070+
# Note: sed replacement added to switch out non-ascii characters of 'lsblk'.
10711071
# 'paste.ubuntu.com' does not accept non-ascii characters
10721072
lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,MODEL | grep -v '/snap/' | sed 's/^[\|,`]-/\|_/g'
10731073
echo -e " ------- 'lsblk' information continued ..."
@@ -1239,7 +1239,7 @@ function GetGraphicsEnv()
12391239
echo -e " --- Graphics Environment Continued from 'various graphics ENVs' ----"
12401240
if [ "$XDG_CURRENT_DESKTOP" != "" ]
12411241
then
1242-
echo -e "The Current Configured Destop is: $XDG_CURRENT_DESKTOP "
1242+
echo -e "The Current Configured Desktop is: $XDG_CURRENT_DESKTOP "
12431243
else
12441244
echo -e "The Current Configured Desktop is: <Not Populated> "
12451245
fi
@@ -1315,7 +1315,7 @@ function GetGraphicsEnv()
13151315
}
13161316

13171317
function GetSoundDevices() {
1318-
# Retreive Sound device ID's
1318+
# Retrieve Sound device ID's
13191319
echo -e "${setansi}---------- Sound Device Information From 'lspci':$ransi"
13201320
sound_device_list=$(sudo -i lspci | \
13211321
grep --color=never -i -e 'audio ' | \
@@ -1700,7 +1700,7 @@ function GetUserInstalled()
17001700
user_installed=$(mktemp /tmp/UserInstalled-XXXXX)
17011701
# Use apt-mark to list all packages marked as manually installed.
17021702
apt-mark showmanual | sort -u > $manually_installed
1703-
# Check to see if defualt installed list exists
1703+
# Check to see if default installed list exists
17041704
# for prebuilt system images, it does not exist
17051705
if [ -f /var/log/installer/initial-status.gz ]
17061706
then
@@ -2088,7 +2088,7 @@ function ArchiveReport() {
20882088
fi
20892089
cwd=$(pwd) # Save current directory
20902090
cd $HOME
2091-
# Create Archive without any parent direcetories
2091+
# Create Archive without any parent directories
20922092
tar -czvf ${sname}.tar.gz ${sname}.txt
20932093
exit_code=$?
20942094
# Check if archive was created successfully (catch exit code)
@@ -2298,7 +2298,7 @@ function Paster()
22982298
debug "Paste_done: $paste_done" 1
22992299
if $paste_done
23002300
then
2301-
# Check $return_url for NULLL
2301+
# Check $return_url for NULL
23022302
if [ "$return_url" != "" ]
23032303
then
23042304
echo -e "Uploaded Report: ${startt}:" >> "$linklog"

0 commit comments

Comments
 (0)