File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,28 @@ if [ "$UPGRADE" = 1 ]; then
1515 exec git -C " $CPPSM " pull " ${GIT_QUIET[@]} " --rebase
1616fi
1717
18+ # shellcheck disable=SC2035
19+ COMMANDS=" $( cd " $CPPSM /commands" && echo * ) "
20+ COMMANDS=" ${COMMANDS// / |} "
21+
1822BRANCH=" $( git -C " $CPPSM " symbolic-ref --short HEAD) "
1923
24+ cat << EOF
25+ Usage: ${0##*/ } [$COMMANDS ]
26+
27+ Run any command with --help to see a brief description of the command.
28+
29+ Visit https://cppsm.github.io/ for full documentation.
30+
31+ Branch: $BRANCH
32+ $( git -C " $CPPSM " log -n 5 --pretty=oneline --abbrev-commit | sed ' s#^# #g' )
33+ EOF
34+
2035git -C " $CPPSM " fetch " ${GIT_QUIET[@]} " origin " $BRANCH "
2136
2237ORIGIN=" $( git -C " $CPPSM " log --pretty=oneline --abbrev-commit " ..origin/$BRANCH " | sed ' s#^# #g' ) "
2338if [ -n " $ORIGIN " ]; then
24- ORIGIN= " $( cat << EOF
39+ cat << EOF
2540
2641Origin:
2742$ORIGIN
3247
3348to upgrade cppsm.
3449EOF
35- ) "
3650fi
3751
38- # shellcheck disable=SC2035
39- COMMANDS=" $( cd " $CPPSM /commands" && echo * ) "
40- COMMANDS=" ${COMMANDS// / |} "
41- cat << EOF
42- Usage: ${0##*/ } [$COMMANDS ]
43-
44- Run any command with --help to see a brief description of the command.
45-
46- Visit https://cppsm.github.io/ for full documentation.
47-
48- Branch: $BRANCH
49- $( git -C " $CPPSM " log -n 5 --pretty=oneline --abbrev-commit | sed ' s#^# #g' )
50- $ORIGIN
51- EOF
5252exit 1
You can’t perform that action at this time.
0 commit comments