Skip to content

Commit

Permalink
Fix debian requirement of --scan
Browse files Browse the repository at this point in the history
changes the variable on line 280 to match the variable that is recursed through the directory (previously was stuck as /opt since that is what $scan was, $scandir is the variable it was expecting.
fixes bb010g#10
  • Loading branch information
piks authored May 29, 2019
1 parent a0f24e1 commit d82a1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betterdiscordctl
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ if [[ $cmd != upgrade ]]; then
for flavor in "${flavors[@]}"; do
verbose 2 "VV: Trying flavor '$flavor'"
shopt -s nocaseglob
for discord in "$scan"/discord?(-)"$flavor"; do
for discord in "$scandir"/discord?(-)"$flavor"; do
shopt -u nocaseglob
if [[ -d $discord ]]; then
verbose 1 "V: Using Discord at $discord"
Expand Down

0 comments on commit d82a1c0

Please sign in to comment.