forked from msioda/BioLockJ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·26 lines (22 loc) · 1.16 KB
/
install
File metadata and controls
executable file
·26 lines (22 loc) · 1.16 KB
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
###################################################################################
## ##
## This script update user profile to run $BLJ/script/blj_config. ##
## If using bash, $blj_profile=~/.bash_profile (set on 11 as the default val). ##
## If using another env, like zsh, update blj_profile value on line 11 below. ##
## If profile exists: backup as $blj_profile~, else create a new $blj_profile. ##
## ##
###################################################################################
export blj_profile=~/.bash_profile
bljDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -f "$blj_profile" ]; then
printf '%s\n' '#BioLockJ generated bash profile' > $blj_profile
echo " Created profile: $blj_profile"
else
cp $blj_profile $blj_profile~
echo " Saved backup: $blj_profile~"
fi
echo '[ -x "$bljDir/script/blj_config" ] && . $bljDir/script/blj_config' >> $blj_profile
source $blj_profile
echo " Saved profile: $blj_profile"
echo "BioLockJ installation complete!"