Project

General

Profile

« Previous | Next » 

Revision 6978

lib/common.Makefile: $(confirm): Added comment that this requires `SHELL := /bin/bash` to work correctly

View differences:

common.Makefile
54 54

  
55 55
wait := read -p $(emph)'Press ENTER to continue:'$(endEmph) REPLY
56 56

  
57
# Requires `SHELL := /bin/bash`
57 58
confirm = $(if $(shell read -p $(emph)"$(1)"$(endEmph)$$'$(if\
58 59
$(2),\n$(2))\nContinue? (y/n) ' REPLY; test "$$REPLY" = y && echo t),,\
59 60
$(error Aborting))

Also available in: Unified diff