Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lupin3000/osalint

Small Docker Shellsheck via Applescript
https://github.com/lupin3000/osalint

applescript dockerfile macos shellcheck

Last synced: 10 days ago
JSON representation

Small Docker Shellsheck via Applescript

Awesome Lists containing this project

README

        

# osaLint

__Requirements__

- [Docker for Mac](https://www.docker.com/docker-mac) installed
- Git installed

## Prepare for usage

```shell
# clone repository
$ git clone https://github.com/Lupin3000/osaLint.git

# change directory
$ cd osaLint/

# build Docker image
$ docker build -t alpine/shellcheck .

# change permission
$ chmod +x linter.scpt
```

## Simple usage

```shell
# run Applescript from Terminal
$ osascript linter.scpt
```

## Extended usage

```shell
# create script directory
$ mkdir ~/Library/Scripts

# copy script into directory
$ cp -a linter.scpt ~/Library/Scripts

# add alias to .bash_profile
echo "alias shelllint='osascript ~/Library/Scripts/linter.scpt'" >> ~/.bash_profile

# reload source
$ source ~/.bash_profile

# run shelllint
$ shelllint
```