mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 21:21:58 -04:00
script(move) -euo
pipefail to debug arg (#175)
apparently this is causing issues, its used mostly for error handling as part of my debugging so we can just move it here
This commit is contained in:
parent
721dfef42a
commit
8c2bfea5c0
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
INSTALLER_PATH="$HOME/.equilotl"
|
INSTALLER_PATH="$HOME/.equilotl"
|
||||||
|
@ -17,6 +16,7 @@ NC='\033[0m' # No Color
|
||||||
# Debug logging
|
# Debug logging
|
||||||
debug_log() {
|
debug_log() {
|
||||||
if $DEBUG; then
|
if $DEBUG; then
|
||||||
|
set -euo pipefail
|
||||||
local timestamp
|
local timestamp
|
||||||
timestamp=$(date +"%Y-%m-%d %T")
|
timestamp=$(date +"%Y-%m-%d %T")
|
||||||
echo -e "[$timestamp] $1" | tee -a "$LOG_FILE"
|
echo -e "[$timestamp] $1" | tee -a "$LOG_FILE"
|
||||||
|
|
Loading…
Add table
Reference in a new issue