Skip to content

Commit

Permalink
Fix boolean logic in 626016f
Browse files Browse the repository at this point in the history
  • Loading branch information
dave14305 committed Aug 9, 2023
1 parent 2d96f31 commit 00b1144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake-qos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ Cake_Install(){
sed -i '\~# CakeQOS-Merlin~d' /jffs/scripts/firewall-start
echo "sh ${SCRIPT_DIR}/${SCRIPT_NAME} startup # $SCRIPT_NAME_FANCY" >> /jffs/scripts/firewall-start

if [ -d "/opt/bin" ] && [ ! -L "/opt/bin/${SCRIPT_NAME}" ] || [ "$(readlink /opt/bin/${SCRIPT_NAME})" != "${SCRIPT_DIR}/${SCRIPT_NAME}" ]; then
if [ -d "/opt/bin" ] && { [ ! -L "/opt/bin/${SCRIPT_NAME}" ] || [ "$(readlink /opt/bin/${SCRIPT_NAME})" != "${SCRIPT_DIR}/${SCRIPT_NAME}" ]; } then
rm -rf /opt/bin/${SCRIPT_NAME}
ln -s "${SCRIPT_DIR}/${SCRIPT_NAME}" "/opt/bin/${SCRIPT_NAME}"
fi
Expand Down

0 comments on commit 00b1144

Please sign in to comment.