sequencer - add subdir to fallback path
Fix standard sourcing
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get script working directory
|
||||
WDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >>/dev/null 2>&1 && pwd)"
|
||||
WDIR="$(cd "$(dirname -- "$(realpath "${BASH_SOURCE[0]}")")" >>/dev/null 2>&1 && pwd)"
|
||||
|
||||
_sequencerCompletion() {
|
||||
local SEQCOMP_LOC="${WDIR}/sqnall-completion.bash"
|
||||
local SEQCOMP_LOADER="$HOME/.bashrc"
|
||||
local SEQCOMP_SOURCE="source \"$SEQCOMP_LOC\""
|
||||
local SEQCOMP_SOURCE=". \"$SEQCOMP_LOC\""
|
||||
|
||||
grep "$SEQCOMP_SOURCE" "$SEQCOMP_LOADER" >>/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
|
Reference in New Issue
Block a user