can't mv file #154

Closed
opened 2021-11-20 15:20:21 +00:00 by ungleich-gitea · 1 comment

Created by: 4nd3r

I needed quick and dirty file moving type, so I made one: ec91c78dd0d6cfc2bf2c572e3b515c02ba5a3fa8
(yeah, sure, maybe I'm doing it wrong with cdist, but that's a story for another day)

manifest:

#!/bin/sh
__file_move /tmp/move123 --to /tmp/move456

but running this type resulted strange error:
mv: cannot stat ‘/tmp/move123’: No such file or directory

but file is there:

# file /tmp/move123
/tmp/move123: ASCII text

what am I missing here?

*Created by: 4nd3r* I needed quick and dirty file moving type, so I made one: ec91c78dd0d6cfc2bf2c572e3b515c02ba5a3fa8 (yeah, sure, maybe I'm doing it wrong with cdist, but that's a story for another day) manifest: ``` #!/bin/sh __file_move /tmp/move123 --to /tmp/move456 ``` but running this type resulted strange error: `mv: cannot stat ‘/tmp/move123’: No such file or directory` but file is there: ``` # file /tmp/move123 /tmp/move123: ASCII text ``` what am I missing here?
Author
Owner

Created by: 4nd3r

and it took me 5 seconds to understand what I'm doing wrong, sigh

*Created by: 4nd3r* and it took me 5 seconds to understand what I'm doing wrong, sigh
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#154
No description provided.