.graft.sh (487B)
1 # Print messages during install: 2 msg_note "This is an important note (e.g., make sure you manually do this thing)" 3 msg_info "This is information" 4 msg_warning "This is a warning" 5 msg_error "This is an error (not fatal)" 6 # msg_fatal "This is an error (fatal)" 7 8 # Link files/directories: 9 link foo.txt 10 link a-link a 11 for f in b/*; do 12 link b-links/"$(basename "$f")" "$f" 13 done 14 15 # Copy files/directories: 16 copy bar.txt 17 copy a-copy a 18 for f in b/*; do 19 copy b-copies/"$(basename "$f")" "$f" 20 done