File tree Expand file tree Collapse file tree 2 files changed +26
-15
lines changed Expand file tree Collapse file tree 2 files changed +26
-15
lines changed Original file line number Diff line number Diff line change
1
+ name : Shell Linter
2
+
3
+ # Run this workflow every time a new commit pushed to your repository
4
+ on : push
5
+
6
+ jobs :
7
+ lint :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout code
11
+ uses : actions/checkout@v4
12
+ - name : Run ShellCheck
13
+ uses : Azbagheri/shell-linter@latest
14
+
Original file line number Diff line number Diff line change 1
- " " "
2
- Script to install configuration environment on Linux and MacOS (WIP)
3
- " " "
4
-
5
- # TODO: Figure out Linux distro or if MacOS
6
-
7
- # TODO: Install zsh
8
-
9
- # TODO: Install nvim
10
- # TODO: Install Plug
11
-
12
- # TODO: Install TMUX
13
- # TODO: Install TPM
14
-
15
- # TODO: Source all files
1
+ #! /bin/bash
2
+
3
+ # Linux or Darwin (MacOS)
4
+ os_name=$( uname)
5
+
6
+ if [ " $os_name " == " Linux" ]; then
7
+ ./scripts/linux.sh
8
+ elif [ " $os_name " == " Darwin" ]; then
9
+ ./scripts/macos.sh
10
+ else
11
+ echo " could not determine OS"
12
+ fi
16
13
You can’t perform that action at this time.
0 commit comments