Browse Source

Fix exit code ot excludelist.sh

master
TheAssassin 7 years ago
parent
commit
ba3495b855
  1. 7
      tools/excludelist.sh

7
tools/excludelist.sh

@ -1,12 +1,9 @@
#!/bin/bash #!/bin/bash
set -e
# Download excludelist # Download excludelist
blacklisted=($(wget --quiet https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist -O - | sort | uniq | grep -v "^#.*" | grep "[^-\s]")) blacklisted=($(wget --quiet https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist -O - | sort | uniq | grep -v "^#.*" | grep "[^-\s]"))
if [ -z $blacklisted ]; then
# Return nothing if no output from command
echo ""
exit
fi
# Create array # Create array
for item in ${blacklisted[@]:0:${#blacklisted[@]}-1}; do for item in ${blacklisted[@]:0:${#blacklisted[@]}-1}; do

Loading…
Cancel
Save