6
存在しない場合にファイルを作成するシェルスクリプトですか?
ファイルの存在をチェックし、ファイルが存在しない場合は作成し、次のコマンドに進むか、次のコマンドに進むシェルスクリプトを作成する必要があります。私が持っているものはそれをしません。 #!/bin/bash # Check for the file that gets created when the script successfully finishes. if [! -f /Scripts/file.txt] then : # Do nothing. Go to the next step? else mkdir /Scripts # file.txt will come at the end of the script fi # Next command (macOS preference setting) defaults …
19
bash
shell-script
osx