check_unlock_media

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use: "check-unlock-media",

	RunE: func(cmd *cobra.Command, args []string) (err error) {
		defer try.Handle(&err)
		tmpDir := try.E1(os.MkdirTemp("", ""))
		defer o.Remove(tmpDir)
		scriptPath := filepath.Join(tmpDir, "check.sh")
		try.E(download.Download(scriptURL, scriptPath))
		try.E(ex.Command("bash", scriptPath).Bind().Run())
		try.E(o.Remove("bahamut_cookie.txt"))
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL