瀏覽代碼

change echo to printf

Noémi Ványi 6 年之前
父節點
當前提交
e2f15b33c4
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      manage.sh

+ 2
- 2
manage.sh 查看文件

@@ -48,7 +48,7 @@ install_geckodriver() {
48 48
 
49 49
     if [ -z "$1" ]; then
50 50
         if [ -z "$VIRTUAL_ENV" ]; then
51
-            echo "geckodriver can't be installed because VIRTUAL_ENV is not set, you should download it from\n  $GECKODRIVER_URL"
51
+            printf "geckodriver can't be installed because VIRTUAL_ENV is not set, you should download it from\n  %s" "$GECKODRIVER_URL"
52 52
             exit
53 53
         else
54 54
             GECKODRIVER_DIR="$VIRTUAL_ENV/bin"
@@ -58,7 +58,7 @@ install_geckodriver() {
58 58
         mkdir -p -- "$GECKODRIVER_DIR"
59 59
     fi
60 60
 
61
-    echo "Installing $GECKODRIVER_DIR/geckodriver from\n  $GECKODRIVER_URL"
61
+    printf "Installing %s/geckodriver from\n  %s" "$GECKODRIVER_DIR" "$GECKODRIVER_URL"
62 62
 
63 63
     FILE="`mktemp`"
64 64
     wget -qO "$FILE" -- "$GECKODRIVER_URL" && tar xz -C "$GECKODRIVER_DIR" -f "$FILE" geckodriver