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 | |
mkdir test | |
cd test | |
env >> test.env | |
echo "$@" >> test.env |
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 | |
while getopts ":r:b:" opt; do | |
case $opt in | |
r) remote=$OPTARG ;; | |
b) branch=$OPTARG ;; | |
\?) echo "Invalid option: -$OPTARG" >&2 ;; | |
esac | |
done | |
# set default remote |