Jump to content

Function default parameter


quentin_lamamy

Recommended Posts

Hi,

In my extension i am trying to set default parameters, i try this but doesn't work

"MYFUNC")

  if [ -z $5]; then
  	$5=${1:-"foo"}
  fi

  # HERE DO SOMETHING COOL

;;

But it don't work, I'm sure it's possible but i'm not very familiar with bash, i'm a backend developer not an admin sys ^^

Edited by quentin_lamamy
Link to comment
Share on other sites

  • quentin_lamamy changed the title to Function default parameter
5 minutes ago, dark_pyrro said:

Good, I'll wait for the GitHub PR

Discord exfiltration still have some issue, variable scope, escaping. Even with Korben explaination , i'm still a bit lost. What a hell ^^

But the basic usage, exfiltrate text and file works, just want to finish cosmetics with discord embed message feature

Edited by quentin_lamamy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...