Bash Script Structure: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
# remote bash scripts download to locale | # remote bash scripts download to locale | ||
for b in init | for b in init make pull push sync;do\ | ||
curl "$BASH_SITE/$b>$BASH_PATH/$b";\ | curl "$BASH_SITE/$b>$BASH_PATH/$b";\ | ||
done | done | ||
Line 19: | Line 19: | ||
==Tree for Chorke== | ==Tree for Chorke== | ||
~/.chorke/ | ~/.chorke/var/bash/java/ | ||
├─ com/ | |||
│ ├─ ebis/ | |||
│ └─ ehis/ | |||
└─ org/ | |||
├─ amqp/ | |||
├─ core/ | |||
├─ ecma/ | |||
└─ init/ | |||
├─ init | |||
├─ make | |||
├─ pull | |||
├─ push | |||
└─ sync | |||
==Bash for Shahed== | ==Bash for Shahed== | ||
Line 51: | Line 46: | ||
# remote bash scripts download to locale | # remote bash scripts download to locale | ||
for b in init | for b in init make pull push sync;do\ | ||
curl "$BASH_SITE/$b>$BASH_PATH/$b";\ | curl "$BASH_SITE/$b>$BASH_PATH/$b";\ | ||
done | done | ||
Line 57: | Line 52: | ||
==Tree for Shahed== | ==Tree for Shahed== | ||
~/.shahed/ | ~/.shahed/var/bash/php/ | ||
└─ biz/ | |||
├─ bash/ | |||
└─ site/ | |||
├─ init | |||
├─ make | |||
├─ pull | |||
├─ push | |||
└─ sync | |||
Revision as of 01:58, 11 January 2018
Bash for Chorke
# locale bash script path setting
BASH_HOME=$HOME/.chorke/var/bash
BASH_PATH=$BASH_HOME/java/org/init
# remote bash script path setting
BASH_BASE=http://cdn.chorke.org/bash
BASH_SITE=$BASH_BASE/java/init
# remote bash scripts download to locale
for b in init make pull push sync;do\
curl "$BASH_SITE/$b>$BASH_PATH/$b";\
done
Tree for Chorke
~/.chorke/var/bash/java/ ├─ com/ │ ├─ ebis/ │ └─ ehis/ └─ org/ ├─ amqp/ ├─ core/ ├─ ecma/ └─ init/ ├─ init ├─ make ├─ pull ├─ push └─ sync
Bash for Shahed
# locale bash script path setting
BASH_HOME=$HOME/.shahed/var/bash
BASH_PATH=$BASH_HOME/php/biz/site
# remote bash script path setting
BASH_BASE=http://cdn.shahed.biz/bash
BASH_SITE=$BASH_BASE/php/site
# remote bash scripts download to locale
for b in init make pull push sync;do\
curl "$BASH_SITE/$b>$BASH_PATH/$b";\
done
Tree for Shahed
~/.shahed/var/bash/php/ └─ biz/ ├─ bash/ └─ site/ ├─ init ├─ make ├─ pull ├─ push └─ sync