diff options
| author | Teddy Wing | 2018-12-01 00:51:31 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2018-12-01 00:51:31 +0100 | 
| commit | b6575d8ac5b24f0a96416413f52f305325c21a54 (patch) | |
| tree | 5a9f908a0fe5ff7c231d5b91074dd6d84bdd819c | |
| parent | ecd23823f68a1cbb07e54354d79a705469fc048a (diff) | |
| download | code-review-b6575d8ac5b24f0a96416413f52f305325c21a54.tar.bz2 | |
git-review: Make `EX_USAGE` a function-local variable
This script is going to be sourced into an interactive shell session.
Don't set unnecessary variables.
| -rw-r--r-- | git-review | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -1,8 +1,8 @@  #!/bin/sh -EX_USAGE=64 -  git-review () { +	local EX_USAGE=64 +  	if [ "$#" -ne 1 ]; then  		return $EX_USAGE  	fi | 
