瀏覽代碼

bypass command line length problem

Noah Vogt 2 年之前
父節點
當前提交
41f23f09e9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      input/slide_selection_iterator.py

+ 2 - 2
input/slide_selection_iterator.py

@@ -53,8 +53,8 @@ def slide_selection_iterator(
             break
 
         os.system(
-            'printf "{}" | fzf > {}'.format(
-                get_file_list_inside(rclone_local_dir),
+            "cd {} && fzf > {}".format(
+                rclone_local_dir,
                 os.path.join(
                     const.SSYNC_CACHE_DIR, const.SSYNC_CHOSEN_FILE_NAMING
                 ),