Skip to content

Commit c08548c

Browse files
Update scripts/entrypoint.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 00de06b commit c08548c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ 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..."
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'
5860
else
5961
cat > "airootfs/usr/share/libalpm/hooks/99-no-beep.hook" << 'EOF'
6062
[Trigger]

0 commit comments

Comments
 (0)