Line | |
---|
1 | # Auto-generated file. DO NOT EDIT |
---|
2 | if [[ "x$BASH" == "x" ]]; then |
---|
3 | # Do not run in zsh or other shells |
---|
4 | return |
---|
5 | fi |
---|
6 | |
---|
7 | function __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/SMART\ Product\ Drivers/bin" true |
---|
36 | __autopackage_addBashPath "PATH" "/opt/lliurex-smart/smart-product-drivers" true |
---|
Note: See
TracBrowser
for help on using the repository browser.