source: lliurex-smart/trunk/fuentes/lliurex-smart.install/opt/lliurex-smart/notebook-bash-path @ 3189

Last change on this file since 3189 was 3189, checked in by hectorgh, 3 years ago

fixing profile

File size: 938 bytes
Line 
1# Auto-generated file. DO NOT EDIT
2if [[ "x$BASH" == "x" ]]; then
3# Do not run in zsh or other shells
4        return
5fi
6
7function __autopackage_addBashPath
8{
9        local name=$1
10        local path=$2
11        local append=$3
12        local kind
13        local tmp
14        local array
15        declare -a array
16
17        local IFS=':'
18        array=(${!name});
19        for DIR in "${array[@]}"; do
20                if [[ "$DIR" = "$path" ]]; then
21                        return 0
22                fi
23        done
24
25        if [[ "${!name}" = "" ]]; then
26                eval "export $name=\"$path\""
27        elif $append; then
28                eval "export $name=\"$path:\$$name\""
29        else
30                eval "export $name=\"\$$name:$path\""
31        fi
32        return 0
33}
34
35#__autopackage_addBashPath "PATH" "/opt/SMART\ Technologies/Notebook\ Software/bin" true
36__autopackage_addBashPath "PATH" "/opt/lliurex-smart/notebook-software" true
Note: See TracBrowser for help on using the repository browser.