Compare commits
1 Commits
zcurses/bu
...
44bab917c9
| Author | SHA1 | Date | |
|---|---|---|---|
| 44bab917c9 |
@@ -35,9 +35,9 @@ optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
--build invoke a build after selection
|
||||
EOF
|
||||
return
|
||||
exit
|
||||
fi
|
||||
error() { echo "\e[31merror:\e[0m $1"; return 1 }
|
||||
error() { echo "\e[31merror:\e[0m $1"; exit 1 }
|
||||
local build_dir
|
||||
if [[ ${#*} -gt 1 ]]; then
|
||||
echo $usage
|
||||
@@ -54,7 +54,7 @@ EOF
|
||||
local -a build_dirs
|
||||
for entry in `ls -A`; do
|
||||
[ -d $entry ] && [[ $entry =~ build* ]] && \
|
||||
build_dirs+=${entry/\//}
|
||||
build_dirs+=$entry
|
||||
done
|
||||
|
||||
# Interactively select a build directory if more than 1 found
|
||||
@@ -74,7 +74,7 @@ EOF
|
||||
|
||||
# Hide the cursor for zcurses, trap SIGINT to ensure cleanup in
|
||||
# always-list occurs below
|
||||
tput civis; trap 'return 130' INT
|
||||
tput civis; trap 'exit 130' INT
|
||||
|
||||
# Enter display loop
|
||||
local key keypad
|
||||
|
||||
Reference in New Issue
Block a user