소스 검색

Fix for issue with the curl to https://api.github.com/repos/jakeday/linux-surface/releases/latest returning a wall/blob of text instead of individual lines. Backwards compatible so it should be fine even if the result comes back with individual lines

Stephen Martin 6 년 전
부모
커밋
3267e4ea1f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      setup.sh

+ 1 - 1
setup.sh

@@ -231,7 +231,7 @@ read -rp "Do you want this script to download and install the latest kernel for
 if [ "$autoinstallkernel" = "yes" ]; then
 if [ "$autoinstallkernel" = "yes" ]; then
 	echo "Downloading latest kernel...\n"
 	echo "Downloading latest kernel...\n"
 
 
-	urls=$(curl --silent "https://api.github.com/repos/jakeday/linux-surface/releases/latest" | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/')
+	urls=$(curl --silent "https://api.github.com/repos/jakeday/linux-surface/releases/latest" | tr ',' '\n' | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/')
 
 
 	resp=$(wget -P tmp $urls)
 	resp=$(wget -P tmp $urls)