mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Modified to work with missing HOME environment variable under Windows
The HOME environment variable is not set on Windows by default. Instead Windows uses USERPROFILE. It is possible for HOME to be set on Windows but for users who have not done this they will get: `HOME: unbound variable`. I have added a line that sets HOME to USERPROFILE if HOME is missing and USERPROFILE is found. This solves the unbound variable error.
This commit is contained in:
parent
2ae7e326bb
commit
120f02fe07
2
AAXtoMP3
2
AAXtoMP3
@ -6,7 +6,7 @@ codec=libmp3lame
|
||||
extension=mp3
|
||||
mode=chaptered
|
||||
authcode=".authcode";
|
||||
authcodeDirs="${HOME}/ ./";
|
||||
if [ -z ${HOME+x} ] && ! [ -z ${USERPROFILE+x} ]; then HOME="$USERPROFILE"; fi
|
||||
GREP=$(grep --version | grep -q GNU && echo "grep" || echo "ggrep")
|
||||
|
||||
if ! [[ $(type -P "$GREP") ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user