set WORKING_DIRECTORY explicitly to PWD if . is passed
This commit is contained in:
		@@ -43,7 +43,11 @@ while test $# -gt 0; do
 | 
				
			|||||||
            ;;
 | 
					            ;;
 | 
				
			||||||
        --wdir | --wdi | --wd | --w | -wdir | -wdi | -wd | -w )
 | 
					        --wdir | --wdi | --wd | --w | -wdir | -wdi | -wd | -w )
 | 
				
			||||||
            shift
 | 
					            shift
 | 
				
			||||||
            WORKING_DIRECTORY="$1"
 | 
					            if [ "$1" = "." ]; then
 | 
				
			||||||
 | 
					                WORKING_DIRECTORY="$PWD"
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                WORKING_DIRECTORY="$1"
 | 
				
			||||||
 | 
					            fi
 | 
				
			||||||
            ;;
 | 
					            ;;
 | 
				
			||||||
        --help | -hel | --he | --h | '--?' | -help | -hel | -he | -h | '-?' )
 | 
					        --help | -hel | --he | --h | '--?' | -help | -hel | -he | -h | '-?' )
 | 
				
			||||||
            usage_and_exit 0
 | 
					            usage_and_exit 0
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user