diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-07-31 16:40:34 -0400 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2011-07-31 16:40:34 -0400 |
commit | 50a00f2f0f268425bebb5c1084b7ccf75e1ec519 (patch) | |
tree | 18753bea36baf35e9d7d7d9cc654f3b5931328f4 /setup-apklbu.in | |
parent | 70b1a6716dc5e2ed4a4b92d908691f86924c3753 (diff) | |
download | alpine-conf-50a00f2f0f268425bebb5c1084b7ccf75e1ec519.tar.bz2 alpine-conf-50a00f2f0f268425bebb5c1084b7ccf75e1ec519.tar.xz |
setup-{apklbu, bootable, chrony, sshd}: replace double equals in if statements with single equals
Diffstat (limited to 'setup-apklbu.in')
-rwxr-xr-x | setup-apklbu.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/setup-apklbu.in b/setup-apklbu.in index 103511d..ff6d218 100755 --- a/setup-apklbu.in +++ b/setup-apklbu.in @@ -27,10 +27,10 @@ while getopts "im:h" opt; do esac done -if [ "$VERBOSE" == "1" ]; then +if [ "$VERBOSE" = "1" ]; then echo "Setup apk caching and lbu? (y/N)" default_read setupapklbu - if [ "$setupapklbu" == "N" ] || [ "$setupapklbu" == "n" ]; then + if [ "$setupapklbu" = "N" ] || [ "$setupapklbu" = "n" ]; then exit 0 fi fi @@ -49,11 +49,11 @@ fi readwritestatus="`echo $mountstatus | awk -F '(' '{print $2}' | awk -F ',' '{print $1}'`" -if [ "$readwritestatus" == "ro" ]; then +if [ "$readwritestatus" = "ro" ]; then rewrite=1 fi -if [ "$rewrite" == 1 ]; then +if [ "$rewrite" = 1 ]; then mount -o remount,rw /media/${MOUNTPOINT} || die "Failed to remount media rw" fi @@ -75,6 +75,6 @@ LBU_MEDIA=$MOUNTPOINT EOF lbu package /media/"$MOUNTPOINT" || die "Failed to lbu apkovl on /media/${MOUNTPOINT}" sync -if [ "$rewrite" == 1 ]; then +if [ "$rewrite" = 1 ]; then mount -o remount,ro /media/${MOUNTPOINT} || die "Failed to remount media ro" fi |