Skip to content

Commit 2220ce8

Browse files
committed
Wrap install script in function.
1 parent effa7f6 commit 2220ce8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## HEAD
4+
5+
- Wrap install script in function.
6+
37
## 1.0.0
48

59
- Add development mode using Gulp.

install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
install_tmuxrc () {
2+
13
set -e
24

35
if ! [ -n "$TMUX" ]; then
46
echo -e "\033[31m✘ Must run in a tmux session to install!"
57
exit 1
68
fi
79

10+
set -u
11+
812
echo -e "\033[32m➤ Installing! \033[0m"
913

1014
command -v git >/dev/null 2>&1 \
@@ -61,3 +65,6 @@ echo -e "\033[32m ✔ Completed ❰ Install Plugins ❱ \033[0m"
6165
echo -e "\033[32m✔ Install complete! \033[0m"
6266

6367
exit 0
68+
}
69+
70+
install_tmuxrc

0 commit comments

Comments
 (0)