nam3nL0s

Patta - per inserire in PATH un dir

Aug 24th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Eseguire tramite '. patta <nomedir>'
  4. # Per semplificare inserire un alias in ~/.bashrc es.: "alias pat='. patta'"
  5.  
  6. if [ -d "$1" ]; then
  7.     export PATH="$PATH:$1"
  8.     echo "$1 pattato"
  9. else
  10.     echo "ERROR - $1: directory non valida"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment