File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -146,19 +146,28 @@ if [ $VERBOSE -eq 0 ] && [ $NOACTION -eq 1 ]; then
146146 exit 0
147147fi
148148
149- for dir do
149+ for dir; do
150+ REFLAC_OPTS=" ${FLAC_LEVEL} "
151+
152+ if [ $SYNC -eq 0 ]; then
153+ REFLAC_OPTS=" ${REFLAC_OPTS} s"
154+ fi
155+ if [ -n " $PRESERVE_MODTIME " ]; then
156+ REFLAC_OPTS=" ${REFLAC_OPTS} p"
157+ fi
158+
150159 if [ $RECURSIVE -eq 1 ] && [ $NOACTION -eq 1 ]; then
151160 find " $( readlink -f -- " $dir " ) " -type d -execdir " $SELF " -nv {} \;
152161 elif [ $RECURSIVE -eq 1 ]; then
153162 if [ $VERBOSE -eq 1 ]; then
154163 find " $( readlink -f -- " $dir " ) " -type d \
155- -execdir " $SELF " -v - " $FLAC_LEVEL " {} \;
164+ -execdir " $SELF " -v" $REFLAC_OPTS " {} \;
156165 elif [ $VERBOSE -ge 2 ]; then
157166 find " $( readlink -f -- " $dir " ) " -type d \
158- -execdir " $SELF " -vv - " $FLAC_LEVEL " {} \;
167+ -execdir " $SELF " -vv" $REFLAC_OPTS " {} \;
159168 else
160169 find " $( readlink -f -- " $dir " ) " -type d \
161- -execdir " $SELF " - " $FLAC_LEVEL " {} \;
170+ -execdir " $SELF " " $REFLAC_OPTS " {} \;
162171 fi
163172 else
164173 pushd -- " $dir " > /dev/null
You can’t perform that action at this time.
0 commit comments