身為 leo,我要雲端 env 檔能直接產在桌面,我才不用去翻隱藏目錄 #46
Reference in New Issue
Block a user
Delete Branch "feat/cloud-env-outdir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OUT_DIR可被環境變數覆寫:OUT_DIR=~/Desktop bash scripts/make-cloud-env.shchmod 700只在目錄是我們自己造的預設位置時才做。原本無條件對$OUT_DIRchmod,一旦指到既有目錄(例如~/Desktop)就會改動使用者目錄權限。產出檔本身仍是 600。驗:
bash -n過;實跑產出~/Desktop/20260820-231007.txt,權限-rw-------,~/Desktop權限未被動過(仍是drwx------),檔內含 v0.3.0 的兩道自我驗證。