Skip to content

Commit

Permalink
🧹 chore: remove confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
eshanized committed Jan 7, 2025
1 parent 25fae6a commit 0d71b4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/snigdhaos-assistant/apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Function to log messages to a log file
log_message() {
# This function logs messages with a timestamp to /var/log/snigdhaos_assistant.log
echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" >> /var/log/snigdhaos_assistant.log
sudo echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" >> /var/log/snigdhaos_assistant.log
}

# Check if the first file (setup script) exists and execute it
Expand Down Expand Up @@ -38,7 +38,7 @@ else
# If packages are found, list them and show a package emoji
echo "📦 The following packages will be installed: $installable_packages"
log_message "Installing packages: $installable_packages"
if ! sudo pacman -S --needed $installable_packages; then
if ! sudo pacman -S --needed $installable_packages --noconfirm; then
# If the package installation fails, show an error with a cross emoji
echo "❌ Error installing packages. Check logs for more details."
log_message "Error installing packages: $installable_packages"
Expand Down

0 comments on commit 0d71b4b

Please sign in to comment.