Advertisement
muhviehstarr

bashrc.sh

Jan 31st, 2018
146
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. #test if user has variable already set
  4.  
  5. grep TESTSSL_INSTALL_DIR $HOME/.bashrc >> /dev/null
  6.  
  7. if [ $? -eq 0 ]
  8.     then
  9. echo "already set for current user"
  10. exit 0
  11.     else
  12. echo "export TESTSSL_INSTALL_DIR=/root/testssl.sh" >> $HOME/.bashrc
  13.     fi
  14. exit 0
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement