aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/icons.sh
blob: a2687179379cbb1c2e2fea8628647ff6e75e7926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# copy icons
#

run_images()
{
    local _dir="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
    local _target="${_dir%/*}" # deleted slash
    local _src="${_target%scripts}/src/images/" # input
    local _dest="${_target%scripts}/dist/" # output

    # copy images

    if [[ -n "${_src}" ]];
    then
        rm -rfv "${_dest}/images/"
        mkdir -p "${_dest}"
        cp -rfv "${_src}" "${_dest}"
    fi

}

# ==============================================================================
# EXECUTION - START
# ==============================================================================
run_images "$@"