Skip to content

Commit c8246ec

Browse files
committed
Fix various bugs in scripts: mostly comparisons
1 parent 6feb5e1 commit c8246ec

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package/root/usr/local/sbin/install_i3_desktop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [ ! -d /usr/share/slim/themes/pine64 ]; then
4141
cp -ra /usr/share/slim/themes/default /usr/share/slim/themes/pine64
4242
wget -O /usr/share/slim/themes/pine64/background.png \
4343
https://github.com/longsleep/build-pine64-image/raw/master/bootlogo/bootlogo-pine64-1366x768.png
44-
sed s/^current_theme(.*)/current_theme pine64/g /etc/slim.conf
44+
sed "s/^current_theme(.*)/current_theme pine64/g" /etc/slim.conf
4545
fi
4646

4747
echo "Done - you should reboot now."

package/root/usr/local/sbin/pine64_install_to_emmc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ case "$1" in
5151

5252
android-7.0|android-7.1)
5353
REPO="ayufan-pine64/$1"
54-
if [[ "$(cat /etc/pine64_model)" -eq "pinebook" ]]; then
54+
if [[ "$(cat /etc/pine64_model)" == "pinebook" ]]; then
5555
PREFIX="$1-pine-a64-pinebook-v"
5656
else
5757
PREFIX="$1-pine-a64-v"

package/root/usr/local/sbin/pine64_upgrade_android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [[ "$2" != "android-7.0" ]] && [[ "$2" != "android-7.1" ]]; then
3333
fi
3434

3535
REPO="ayufan-pine64/$2"
36-
if [[ "$(cat /etc/pine64_model)" -eq "pinebook" ]]; then
36+
if [[ "$(cat /etc/pine64_model)" == "pinebook" ]]; then
3737
PREFIX="$2-pine-a64-pinebook-v"
3838
else
3939
PREFIX="$2-pine-a64-v"

simpleimage/make_rootfs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ BOOT="$5"
1919
MODEL="$6"
2020
VARIANT="$7"
2121

22-
if [[ -z "$MODEL" ]]; then
22+
if [ -z "$MODEL" ]; then
2323
MODEL="pine64"
2424
fi
2525

@@ -283,7 +283,7 @@ EOF
283283
esac
284284
do_chroot systemctl enable cpu-corekeeper
285285
do_chroot systemctl enable ssh-keygen
286-
if [ "$MODEL" -eq "pinebook" ]; then
286+
if [ "$MODEL" = "pinebook" ]; then
287287
do_chroot systemctl enable pinebook-headphones
288288
fi
289289
sed -i 's|After=rc.local.service|#\0|;' "$DEST/lib/systemd/system/[email protected]"

0 commit comments

Comments
 (0)