Skip to content

Commit dea272d

Browse files
authored
Merge pull request #2 from maknop/linter_gh_action
adding a shell linter check on commits
2 parents 8063fa2 + c16bbd6 commit dea272d

File tree

2 files changed

+26
-15
lines changed

2 files changed

+26
-15
lines changed

.github/workflows/lint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+

start.sh

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
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
1613

0 commit comments

Comments
 (0)