mirror of
https://github.com/RasppleII/a2cloud.git
synced 2024-12-21 06:29:57 +00:00
Avoid unnecessary subshell
This commit is contained in:
parent
34798abf11
commit
82016a398c
@ -21,7 +21,7 @@ fi
|
||||
newVersion=$(grep '^a2cloudVersion' "$a2cSource/install.sh" | cut -d '"' -f 2)
|
||||
|
||||
if [[ -f /usr/local/etc/A2CLOUD-version ]]; then
|
||||
installedVersion="$(cat /usr/local/etc/A2CLOUD-version)"
|
||||
read installedVersion </usr/local/etc/A2CLOUD-version
|
||||
if [[ $installedVersion != *.*.* ]]; then
|
||||
installedVersion="${installedVersion:0:1}.${installedVersion:1:1}.${installedVersion:2}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user