Skip to content

Commit

Permalink
Merge pull request #1422 from aparcar/ln-short
Browse files Browse the repository at this point in the history
util: use short `ln` options for Busybox compat
  • Loading branch information
Emantor authored Jun 18, 2024
2 parents 67c7c58 + c56347e commit b4ba8da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions labgrid/util/managedfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def sync_to_resource(self, symlink=None):
conn.run_check(f"test ! -e {symlink} -o -L {symlink}")
except ExecutionError:
raise ManagedFileError(f"Path {symlink} exists but is not a symlink.")
conn.run_check(
f"ln --symbolic --force --no-dereference {self.rpath}{os.path.basename(self.local_path)} {symlink}" # pylint: disable=line-too-long
)
# use short options to be compatible with busybox
# --symbolic --force --no-dereference
conn.run_check(f"ln -sfn {self.rpath}{os.path.basename(self.local_path)} {symlink}")


def _on_nfs(self, conn):
Expand Down

0 comments on commit b4ba8da

Please sign in to comment.