Index: Makefile =================================================================== --- Makefile (revision 104130) +++ Makefile (working copy) @@ -498,7 +498,13 @@ echo " WARNING WARNING WARNING" ;\ fi -install: datafiles bininstall $(SUBDIRS_INSTALL) +badshell: +ifneq ($(findstring ~,$(DESTDIR)),) + @echo "Your shell sucks with ~ expansion. Please replace and try again." + @exit 1 +endif + +install: badshell datafiles bininstall $(SUBDIRS_INSTALL) @if [ -x /usr/sbin/asterisk-post-install ]; then \ /usr/sbin/asterisk-post-install $(DESTDIR) . ; \ fi