| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e604b46 commit 19dfbd8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,16 @@ | |||
| 1 | - #!/usr/bin/env bash | ||
| 1 | + #!/bin/sh | ||
| 2 | 2 | ||
| 3 | 3 | set -e | |
| 4 | 4 | ||
| 5 | - if [[ -z "$TRAVIS" ]]; then | ||
| 6 | - read -rp "This operation will destroy locally modified files. Continue ? [N/y]: " answer | ||
| 7 | - if [[ ! $answer =~ [yY] ]]; then | ||
| 8 | - exit 2 | ||
| 9 | - fi | ||
| 5 | + if test -z "$TRAVIS"; then | ||
| 6 | + printf 'This operation will destroy locally modified files. Continue ? [N/y]: ' >&2 | ||
| 7 | + read -r answer | ||
| 8 | + case "$answer" in | ||
| 9 | + [yY]) | ||
| 10 | + ;; | ||
| 11 | + *) | ||
| 12 | + exit 2 ;; | ||
| 13 | + esac | ||
| 10 | 14 | fi | |
| 11 | 15 | ||
| 12 | 16 | git tag __testing_point__ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments