@@ -53,10 +53,8 @@ build_iso() {
5353    #  Create a custom hook to disable beeps in various config files
5454    if  [ !  -f  " airootfs/usr/share/libalpm/hooks/99-no-beep.hook" ;  then 
5555        log " Creating custom hook to disable beeps..." 
56- if  !  mkdir -p " airootfs/usr/share/libalpm/hooks/" 2> /dev/null;  then 
57-     warn " Failed to create hooks directory, continuing..." 
58- else 
59-     cat >  " airootfs/usr/share/libalpm/hooks/99-no-beep.hook" <<  'EOF '
56+         if  !  mkdir -p " airootfs/usr/share/libalpm/hooks/" 2> /dev/null;  then 
57+             warn " Failed to create hooks directory, continuing..." 
6058        else 
6159            cat >  " airootfs/usr/share/libalpm/hooks/99-no-beep.hook" <<  'EOF '
6260[Trigger] 
7674    #  Add settings to disable terminal bell in bash
7775    if  [ !  -f  " airootfs/etc/skel/.bashrc" ;  then 
7876        log " Adding bash configuration to disable terminal bell..." 
79- if  !  mkdir -p " airootfs/etc/skel/" 2> /dev/null;  then 
80-     warn " Failed to create skel directory, continuing..." 
81- else 
82-     echo  " # Disable terminal bell" >  " airootfs/etc/skel/.bashrc" 
83-     echo  " bind 'set bell-style none'" >>  " airootfs/etc/skel/.bashrc" 
84- fi 
77+         if  !  mkdir -p " airootfs/etc/skel/" 2> /dev/null;  then 
78+             warn " Failed to create skel directory, continuing..." 
8579        else 
8680            echo  " # Disable terminal bell" >  " airootfs/etc/skel/.bashrc" 
8781            echo  " bind 'set bell-style none'" >>  " airootfs/etc/skel/.bashrc" 
9185    #  Set bell-style none in global inputrc
9286    if  [ !  -f  " airootfs/etc/inputrc" ;  then 
9387        log " Setting bell-style none in global inputrc..." 
94- if  !  mkdir -p " airootfs/etc" 2> /dev/null;  then 
95-     warn " Failed to create etc directory, continuing..." 
96- else 
97-     echo  " set bell-style none" >  " airootfs/etc/inputrc" 
98- fi 
88+         if  !  mkdir -p " airootfs/etc" 2> /dev/null;  then 
89+             warn " Failed to create etc directory, continuing..." 
9990        else 
10091            echo  " set bell-style none" >  " airootfs/etc/inputrc" 
10192        fi 
0 commit comments