mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Avoid 'scalar parameter data_dir created globally in function' warning in Zsh
This commit is contained in:
		
							parent
							
								
									a013f8d463
								
							
						
					
					
						commit
						e60f35d866
					
				@ -14,7 +14,7 @@
 | 
			
		||||
#You should have received a copy of the GNU General Public License
 | 
			
		||||
#along with autojump.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
 | 
			
		||||
local data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)}
 | 
			
		||||
if [ "$data_dir" = "~" ]
 | 
			
		||||
then
 | 
			
		||||
    export AUTOJUMP_DATA_DIR=${data_dir}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user