quick-switch
This commit is contained in:
parent
448bf425c3
commit
57a1eb5325
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Stolen from https://stackoverflow.com/a/29436423
|
||||||
function yes_or_no {
|
function yes_or_no {
|
||||||
while true; do
|
while true; do
|
||||||
read -p "$* [y/n]: " yn
|
read -p "$* [y/n]: " yn
|
||||||
|
|
Loading…
Reference in New Issue