From 0207669e4a5a0227660779b8617f2b5a52570cd3 Mon Sep 17 00:00:00 2001 From: Ezri Zhu Date: Sat, 13 Jan 2024 05:10:14 -0500 Subject: [PATCH] nitpicks fixes --- try | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/try b/try index 1f04d6bb..1e8e7622 100755 --- a/try +++ b/try @@ -68,7 +68,8 @@ try() { for lower_dir in $LOWER_DIRS do temp_mountpoint="$lower_dir/upperdir$mountpoint" - if [ -n "$new_mountpoint" ]; then + if [ -n "$new_mountpoint" ] + then # If new_mountpoint is not empty, append : and the temp_mountpoint new_mountpoint="$new_mountpoint:$temp_mountpoint" else @@ -176,10 +177,9 @@ do continue fi - ## Don't do anything for the root - ## and skip if it is /dev or /proc, we will mount it later + ## Don't do anything for the root and skip if it is /dev or /proc, we will mount it later case "$pure_mountpoint" in - (/|/dev|/proc) continue;; + (/|/dev|/proc) continue;; esac # Try mounting everything normally @@ -503,17 +503,17 @@ error() { usage() { cat >&2 <