bashrc/.bashrc.d/getdst.bash

12 lines
285 B
Bash

# shellcheck disable=SC2120
# shellcheck disable=SC2119
# Print Dell Service Tag
getdst() {
if [[ "$1" = "-l" ]]; then
printf "http://www.dell.com/support/home/us/en/04/product-support/servicetag/%s/configuration\n" "$(getdst)"
else
sudo dmidecode -s system-serial-number
fi
}