Skip to content

Instantly share code, notes, and snippets.

View CoBug92's full-sized avatar
👋
rm -rf your/heart

Bogdan Kostyuchenko CoBug92

👋
rm -rf your/heart
View GitHub Profile
@CoBug92
CoBug92 / swiftlintdiff.sh
Created January 9, 2018 14:02 — forked from tooszovski/swiftlintdiff.sh
swiftlint script for git diff files with spaces
#!/bin/bash
function addFilesToLint {
filename=""
count=$2
for item in $1
do
if [[ $item == *".swift"* ]]; then
filename+="$item"
export SCRIPT_INPUT_FILE_$count="$filename"