@@ -181,16 +181,16 @@ echo "****************************"
181
181
echo " Installing package"
182
182
echo " ****************************"
183
183
184
- if [[ -n " $SUDO_PASSWORD " ]]
184
+ if [[ -n " ${ SUDO_PASSWORD} " ]]
185
185
then
186
186
echo " Installing static archive..."
187
187
MAKE_FLAGS=(" -f" " Makefile" installdirs
188
188
PREFIX=" ${INSTX_PREFIX} " LIBDIR=" ${INSTX_LIBDIR} " )
189
- printf " %s\n" " $SUDO_PASSWORD " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
189
+ printf " %s\n" " ${ SUDO_PASSWORD} " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
190
190
191
191
MAKE_FLAGS=(" -f" " Makefile" install
192
192
PREFIX=" ${INSTX_PREFIX} " LIBDIR=" ${INSTX_LIBDIR} " )
193
- printf " %s\n" " $SUDO_PASSWORD " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
193
+ printf " %s\n" " ${ SUDO_PASSWORD} " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
194
194
else
195
195
echo " Installing static archive..."
196
196
MAKE_FLAGS=(" -f" " Makefile" installdirs
@@ -245,16 +245,16 @@ echo "****************************"
245
245
echo " Installing package"
246
246
echo " ****************************"
247
247
248
- if [[ -n " $SUDO_PASSWORD " ]]
248
+ if [[ -n " ${ SUDO_PASSWORD} " ]]
249
249
then
250
250
echo " Installing shared object..."
251
251
MAKE_FLAGS=(" -f" " $MAKEFILE " install
252
252
PREFIX=" ${INSTX_PREFIX} " LIBDIR=" ${INSTX_LIBDIR} " )
253
- printf " %s\n" " $SUDO_PASSWORD " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
253
+ printf " %s\n" " ${ SUDO_PASSWORD} " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
254
254
255
255
MAKE_FLAGS=(" -f" " $MAKEFILE " installdirs
256
256
PREFIX=" ${INSTX_PREFIX} " LIBDIR=" ${INSTX_LIBDIR} " )
257
- printf " %s\n" " $SUDO_PASSWORD " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
257
+ printf " %s\n" " ${ SUDO_PASSWORD} " | sudo ${SUDO_ENV_OPT} -S " ${MAKE} " " ${MAKE_FLAGS[@]} "
258
258
else
259
259
echo " Installing shared object..."
260
260
MAKE_FLAGS=(" -f" " $MAKEFILE " installdirs
286
286
echo " Cflags: -I\$ {includedir}"
287
287
} > libbz2.pc
288
288
289
- if [[ -n " $SUDO_PASSWORD " ]]
289
+ if [[ -n " ${ SUDO_PASSWORD} " ]]
290
290
then
291
- printf " %s\n" " $SUDO_PASSWORD " | sudo ${SUDO_ENV_OPT} -S cp ./libbz2.pc " ${INSTX_PKGCONFIG} "
292
- printf " %s\n" " $SUDO_PASSWORD " | sudo ${SUDO_ENV_OPT} -S chmod u=rw,go=r " ${INSTX_PKGCONFIG} /libbz2.pc"
291
+ printf " %s\n" " ${ SUDO_PASSWORD} " | sudo ${SUDO_ENV_OPT} -S cp ./libbz2.pc " ${INSTX_PKGCONFIG} "
292
+ printf " %s\n" " ${ SUDO_PASSWORD} " | sudo ${SUDO_ENV_OPT} -S chmod u=rw,go=r " ${INSTX_PKGCONFIG} /libbz2.pc"
293
293
else
294
294
cp ./libbz2.pc " ${INSTX_PKGCONFIG} "
295
295
chmod u=rw,go=r " ${INSTX_PKGCONFIG} /libbz2.pc"
296
296
fi
297
297
298
298
# Fix permissions once
299
- if [[ -n " $SUDO_PASSWORD " ]]; then
300
- printf " %s\n" " $SUDO_PASSWORD " | sudo ${SUDO_ENV_OPT} -S bash " ${INSTX_TOPDIR} /fix-permissions.sh" " ${INSTX_PREFIX} "
299
+ if [[ -n " ${ SUDO_PASSWORD} " ]]; then
300
+ printf " %s\n" " ${ SUDO_PASSWORD} " | sudo ${SUDO_ENV_OPT} -S bash " ${INSTX_TOPDIR} /fix-permissions.sh" " ${INSTX_PREFIX} "
301
301
else
302
302
bash " ${INSTX_TOPDIR} /fix-permissions.sh" " ${INSTX_PREFIX} "
303
303
fi
0 commit comments