mirror of
https://github.com/static-web-server/static-web-server.git
synced 2026-01-25 05:06:33 +00:00
fix: installer script failure when used in alpine linux (#610)
This commit is contained in:
@@ -75,7 +75,13 @@ main() {
|
||||
ensure chmod u+x "$_download_file/static-web-server"
|
||||
|
||||
echo "Copying SWS pre-compiled binary to $local_bin..."
|
||||
sudo cp -ax "$_download_file/static-web-server" $local_bin
|
||||
|
||||
# Alpine check for busybox 'cp' command
|
||||
if grep -q 'Alpine' /etc/os-release 2>/dev/null; then
|
||||
sudo cp -ap "$_download_file/static-web-server" $local_bin
|
||||
else
|
||||
sudo cp -ax "$_download_file/static-web-server" $local_bin
|
||||
fi
|
||||
|
||||
local _status=$?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user