Skip to content

Invalid option for read command in taskfile #314

Closed
@GrzegorzMatuszakTSH

Description

I'm moving commands from makefile to taskfile.

I have this command in my makefile (works):

		read -p "Enter username: " username; \
		sed -i 's/{username}/'$$username'/g' ./file.json; 

When I run it using taskfile I get error read: invalid option "-p"

  test:
    desc: auth
    cmds:
      - |
          read -p "Enter username: " username; \
          sed -i 's/{username}/'$$username'/g' ./file.json; 

I tried many options without success.
Is a read available in taskfile?
I'm out of idea how to migrate this command.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    dep: mvdan/shIssues related to the upstream interpreter used by Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions