mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-02 15:03:39 +02:00
Update updater.sh
This commit is contained in:
parent
b8466f24ae
commit
9d32b46694
1 changed files with 4 additions and 4 deletions
|
@ -143,11 +143,11 @@ open_file () { #expects one argument: file_path
|
||||||
}
|
}
|
||||||
|
|
||||||
readIniFile () { # expects one argument: absolute path of profiles.ini
|
readIniFile () { # expects one argument: absolute path of profiles.ini
|
||||||
inifile="$1"
|
declare -r inifile="$1"
|
||||||
|
|
||||||
tfile="$(mktemp)"
|
tfile="$(mktemp)"
|
||||||
declare -r inifile
|
declare -r $tfile
|
||||||
declare -r tfile
|
|
||||||
|
|
||||||
if [ "$(grep -c '^\[Profile' "$inifile")" == "1" ]; then ### only 1 profile found
|
if [ "$(grep -c '^\[Profile' "$inifile")" == "1" ]; then ### only 1 profile found
|
||||||
grep '^\[Profile' -A 4 "$inifile" | grep -v '^\[Profile' > "$tfile"
|
grep '^\[Profile' -A 4 "$inifile" | grep -v '^\[Profile' > "$tfile"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue