/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1

« back to all changes in this revision

Viewing changes to install.sh

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-14 13:35:20 UTC
  • Revision ID: git-v1:919576f2a6e9506aa319240fa61d7a478667740c
install.sh

* Made script print the files being copied and such.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
  done
64
64
}
65
65
 
 
66
####
 
67
# Utility function that prints what what is being executed.
 
68
# See: https://stackoverflow.com/a/23342259
 
69
####
 
70
function __exe () { echo "    $@" ; "$@" ; }
 
71
 
66
72
function __main () {
67
73
  if [[ $__INSTALL_SET == 1 ]]
68
74
  then
69
 
    mkdir -p $__INSTALL_DIR
70
 
    cp $__CWD/scripts/*.sh $__INSTALL_DIR/
 
75
    __exe mkdir -p $__INSTALL_DIR
 
76
    for __file__ in $__CWD/scripts/*.sh
 
77
    do
 
78
      __exe cp $__file__ $__INSTALL_DIR/
 
79
    done
71
80
  else
72
81
    echo ""
73
82
    echo "YOU MUST PROVIE -i OR --install FOR IT TO INSTALL THE SCRIPTS."