fix : variable environement
This commit is contained in:
@@ -1 +1 @@
|
||||
WEBHOOK_URL="https://discord.com/api/webhooks/123456789012345678/abcdefghijklmnopqrstuvwxyz"
|
||||
WEBHOOK_URL=""
|
||||
9
.gitignore
vendored
9
.gitignore
vendored
@@ -0,0 +1,9 @@
|
||||
# Secrets / environment
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
!.env.exemple
|
||||
|
||||
# IDE / editor
|
||||
.idea/
|
||||
.vscode/
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
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}')
|
||||
free=$((100 - usage))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user