Skip to content

Commit

Permalink
fix checkFile
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberAndi committed Dec 14, 2023
1 parent 3c942b7 commit 70a9f42
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions openWRT_install_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1543,8 +1543,7 @@ DEVICE_PRODUCT='CyberSecurity-Box'
DEVICE_REVISION='v0.75'

EOF

if [ -e "openWRT*.sh" ]
if checkFile openWRT*.sh
then
processes=""
processes=$(cp openWRT*.sh /etc/openWRT_install.sh)
Expand Down Expand Up @@ -1574,14 +1573,14 @@ echo
#sichere alte Konfiguration
echo 'Sichere alte Konfiguration'
#iptables-save > rules.v4_old_$datum.bkp
if [ -e "/www/luci-static/bootstrap/c*.css" ]
if checkFile /www/luci-static/bootstrap/c*.css
then
processes=""
processes=$(rm /www/luci-static/bootstrap/c*.css)
wait $processes
fi

if [ -e "/www/luci-static/resources/view/dashboard/css/c*.css" ]
if checkFile /www/luci-static/resources/view/dashboard/css/c*.css
then
processes=""
processes=$(rm /www/luci-static/resources/view/dashboard/css/c*.css)
Expand Down

0 comments on commit 70a9f42

Please sign in to comment.