File tree 1 file changed +16
-16
lines changed 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
15
15
exec git -C " $CPPSM " pull " ${GIT_QUIET[@]} " --rebase
16
16
fi
17
17
18
+ # shellcheck disable=SC2035
19
+ COMMANDS=" $( cd " $CPPSM /commands" && echo * ) "
20
+ COMMANDS=" ${COMMANDS// / |} "
21
+
18
22
BRANCH=" $( git -C " $CPPSM " symbolic-ref --short HEAD) "
19
23
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
+
20
35
git -C " $CPPSM " fetch " ${GIT_QUIET[@]} " origin " $BRANCH "
21
36
22
37
ORIGIN=" $( git -C " $CPPSM " log --pretty=oneline --abbrev-commit " ..origin/$BRANCH " | sed ' s#^# #g' ) "
23
38
if [ -n " $ORIGIN " ]; then
24
- ORIGIN= " $( cat << EOF
39
+ cat << EOF
25
40
26
41
Origin:
27
42
$ORIGIN
32
47
33
48
to upgrade cppsm.
34
49
EOF
35
- ) "
36
50
fi
37
51
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
52
52
exit 1
You can’t perform that action at this time.
0 commit comments