mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
differ between OpenWRT and Linux in calling unzip
This commit is contained in:
parent
e927261668
commit
8f6547c9fc
|
@ -184,7 +184,21 @@ if [ $2 = 'imageboard' ] ; then
|
|||
exit 255
|
||||
fi
|
||||
|
||||
/usr/local/bin/unzip kareha_*
|
||||
# Temporary Fix for OpenWRT and Normal notebooks.
|
||||
# Currently, /usr/local/bin/ is not in PATH on OpenWRT
|
||||
# so just using "unzip" will break compatibilities
|
||||
# So we are going to check if that file exists,
|
||||
# we call it directly.
|
||||
# If not, we just try to run unzip.
|
||||
# if unzip fails, we end the script now to prevent
|
||||
# more inconsistencies.
|
||||
if [ "$OPENWRT" = "yes" ] ; then
|
||||
/usr/local/bin/unzip kareha_*
|
||||
else
|
||||
unzip kareha_*
|
||||
fi
|
||||
|
||||
|
||||
mv kareha/* $PIRATEBOX_FOLDER/share/board
|
||||
rm -rf $PIRATEBOX_FOLDER/tmp/kareha*
|
||||
|
||||
|
|
Loading…
Reference in a new issue