Browse Source

oops

Signed-off-by: fbt <fbt@fleshless.org>
master 1.14.2
Jack L. Frost 3 years ago
parent
commit
14af6b720f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      ufwd

+ 3
- 1
ufwd View File

@ -24,9 +24,11 @@ usage() {
upload() {
declare file=$1
upload_output=$( ufw "$@" -R "$file" )
upload_output=$( ufw -R "$@" "$file" )
upload_return=$?
echo "ufw $* -R $file"
if (( flag_enable_notifications )); then
if (( $upload_return )); then
notify-send 'ufwd' "File upload failed: $upload_output"


Loading…
Cancel
Save