A fork of the Materia GTK theme.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

fix(change_color.sh): use dirname instead of /.. to handle non-existing directory situation

roundabout,
created on Wednesday, 12 May 2021, 11:25:11 (1620818711), received on Sunday, 11 May 2025, 13:23:04 (1746969784)
Author identity: actionless <actionless.loveless@gmail.com>

76cac96ca7fe45dc9e5b9822b0fbb5f4cad47984

change_color.sh

@@ -305,8 +305,8 @@ meson install -C _build

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            GENERATED_PATH="$tempdir/share/themes/Materia$COLOR_SUFFIX$SIZE_SUFFIX"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            if [[ -d "$DEST_PATH" ]]; then
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            	rm -r "$DEST_PATH"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        elif [[ ! -d "$DEST_PATH"/.. ]]; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	mkdir -p "$(readlink -f $DEST_PATH/..)"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        elif [[ ! -d "$(dirname "$DEST_PATH")" ]]; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	mkdir -p "$(readlink -f "$(dirname "$DEST_PATH")")"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            fi
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            mv "$GENERATED_PATH" "$DEST_PATH"