Skip to content

Commit 51cfba6

Browse files
authored
Use path for snapraid bin
Find the snapraid binary using its path, it's no longer an hardcoded value Resolves #127
1 parent 0caec4b commit 51cfba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ EXECUTE_BEFORE_SPINDOWN=0
238238
####################### SYSTEM CONFIGURATION #######################
239239
# Please make changes only if you know what you're doing
240240

241-
# location of the snapraid binary
242-
SNAPRAID_BIN="/usr/bin/snapraid"
241+
# locate snapraid using path
242+
SNAPRAID_BIN="$(command -v snapraid)"
243243
# location of the mail program binary
244244
MAIL_BIN="/usr/bin/mailx"
245245

0 commit comments

Comments
 (0)