Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiongchiamiov/34a1e38423242e0e92bdccc1bd0238db to your computer and use it in GitHub Desktop.
Save xiongchiamiov/34a1e38423242e0e92bdccc1bd0238db to your computer and use it in GitHub Desktop.
┌─[jamesph@ilmr] - [~/temp] - [Wed Apr 06, 11:12]
└─[$]>cat function.sh
function install {
set -x
dnf install $1 | tee -a ~/Scripts/dnf_install.log
set +x
}
┌─[jamesph@ilmr] - [~/temp] - [Wed Apr 06, 11:12]
└─[$]>source function.sh
┌─[jamesph@ilmr] - [~/temp] - [Wed Apr 06, 11:12]
└─[$]>install sc
+ dnf install sc
bash: dnf: command not found
+ tee -a /home/jamesph/Scripts/dnf_install.log
tee: /home/jamesph/Scripts/dnf_install.log: No such file or directory
+ set +x
┌─[jamesph@ilmr] - [~/temp] - [Wed Apr 06, 11:12]
└─[$]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment