fix not passing by arguments
This commit is contained in:
		
							parent
							
								
									0ad2f8c5f6
								
							
						
					
					
						commit
						68754482dc
					
				
					 1 changed files with 9 additions and 4 deletions
				
			
		
							
								
								
									
										13
									
								
								fenix-fox.sh
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								fenix-fox.sh
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -32,10 +32,10 @@ enable_profile_customizations() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
installcss() {
 | 
			
		||||
	if [[ ! -n "$2" ]]; then                                                        
 | 
			
		||||
	if [[ ! -n "$arg2" ]]; then                                                        
 | 
			
		||||
        	config="true-mobile"                                                    
 | 
			
		||||
	else                                                                            
 | 
			
		||||
        	config=$1                                                               
 | 
			
		||||
        	config=$arg2                                                               
 | 
			
		||||
	fi                                                                              
 | 
			
		||||
                                                                                
 | 
			
		||||
	case $config in	
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@ deploy_true_mobile() {
 | 
			
		|||
                mv $installdir/chrome $installdir/chrome.original               
 | 
			
		||||
        fi
 | 
			
		||||
	mkdir $installdir/chrome
 | 
			
		||||
	cp src/userChrome/{true_mobile_landscape.css,appMenu.css,editBookmarkPanel.css,findbar.css,popups.css,root.css,tabmenu.css,urlbar.css,extensions_menu.css,alt-browser-alt.css,custom_rules.css,iconized_main_menu.css,round_ui_items.css,numbered_tabs.css,tab_counter.css,true_mobile_mode.css,dynamic_popups_pro.css} $installdir/chrome
 | 
			
		||||
	cp src/userChrome/{true_mobile_landscape.css,appMenu.css,editBookmarkPanel.css,findbar.css,popups.css,root.css,tabmenu.css,urlbar.css,extensions_menu.css,alt-browser-alt.css,custom_rules.css,iconized_main_menu.css,round_ui_items.css,numbered_tabs.css,tab_counter.css,true_mobile_mode.css,dynamic_popups_pro.css} $installdir/chrome/
 | 
			
		||||
	cp src/userChrome/userChrome-true-mobile.css $installdir/chrome/userChrome.css
 | 
			
		||||
	cp src/userContent/theme-fenix.css $installdir/chrome/userContent.css
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -96,7 +96,12 @@ clonerepo() {
 | 
			
		|||
#
 | 
			
		||||
## Main
 | 
			
		||||
#
 | 
			
		||||
case "$1" in
 | 
			
		||||
 | 
			
		||||
# fix not passing by arguments
 | 
			
		||||
arg1=$1
 | 
			
		||||
arg2=$2
 | 
			
		||||
 | 
			
		||||
case "$arg1" in
 | 
			
		||||
	--install)
 | 
			
		||||
		enable_profile_customizations
 | 
			
		||||
		installcss
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue