This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
YELLOW=$'\e[1;33m' | |
GREEN=$'\e[1;32m' | |
NOCOLOR=$'\e[0m' | |
read -r -p "Please enter the type of content you wish to export - pullRequest|issue|discussion (default = pullRequest): " type | |
type=${type:-pullRequest} | |
read -r -p "Please enter the repository owner: " owner | |
owner=${owner:-${owner}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Converts Windows batch script to Linux shell script | |
# | |
# Invocation: | |
# ./bat2sh script.bat | |
# | |
OUTFILE=${2:-${1%%.bat}.sh} |