]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(docker-upgrade.sh): use command in more places
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 10 Sep 2025 22:58:42 +0000 (00:58 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 10 Sep 2025 22:58:42 +0000 (00:58 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
scripts/docker-upgrade.sh

index 426fdb3bb1fd16c8ff69f9ad99c2cb75a19beab5..d82b1472976fc59b4afa977d9ba4ec8e1f94d51e 100755 (executable)
@@ -20,7 +20,7 @@ is_pid_running() {
 create_lock() {
   _dir="$1"
   umask 077
-  if mkdir "$_dir" 2>/dev/null; then
+  if command mkdir "$_dir" 2>/dev/null; then
     if ! printf '%d\n' "$$" >"$_dir/pid"; then
       rm -rf "$_dir" 2>/dev/null || true
       return 1