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 ^^

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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