fix : variable environement

This commit is contained in:
Lethary
2026-03-05 11:44:03 +01:00
parent 0664831fe3
commit 624658e3af
3 changed files with 12 additions and 2 deletions

View File

@@ -1 +1 @@
WEBHOOK_URL="https://discord.com/api/webhooks/123456789012345678/abcdefghijklmnopqrstuvwxyz" WEBHOOK_URL=""

9
.gitignore vendored
View File

@@ -0,0 +1,9 @@
# Secrets / environment
.env
.env.*
!.env.example
!.env.exemple
# IDE / editor
.idea/
.vscode/

View File

@@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
limit=1 limit=1
WEBHOOK_URL="https://discord.com/api/webhooks/1479061246903845048/oInyHOf1l7t-jbu9c1lvQDBUxT7m96sUpoDak-V_wjR4IRFi2zz9prC20IKq6cLHF8FO" # Mettre le lien de votre webhook Discord dans un .env
WEBHOOK_URL=$(grep -E '^WEBHOOK_URL=' .env | cut -d '=' -f2-)
usage=$(df -h / | awk 'NR==2 {gsub(/%/,"",$5); print $5}') usage=$(df -h / | awk 'NR==2 {gsub(/%/,"",$5); print $5}')
free=$((100 - usage)) free=$((100 - usage))