Created
April 6, 2016 18:13
-
-
Save xiongchiamiov/34a1e38423242e0e92bdccc1bd0238db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌─[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