{"id":15576296,"url":"https://github.com/syslog777/scriptcreationtool","last_synced_at":"2025-03-12T15:43:19.547Z","repository":{"id":187565961,"uuid":"95909379","full_name":"Syslog777/ScriptCreationTool","owner":"Syslog777","description":"A tool for making scripts executable","archived":false,"fork":false,"pushed_at":"2017-07-01T08:48:00.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T08:48:03.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Syslog777.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-06-30T17:18:50.000Z","updated_at":"2017-06-30T17:19:32.000Z","dependencies_parsed_at":"2023-08-11T05:16:45.496Z","dependency_job_id":"753cb78b-4363-4da9-bd6d-9b38d0f97541","html_url":"https://github.com/Syslog777/ScriptCreationTool","commit_stats":null,"previous_names":["syslog777/scriptcreationtool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syslog777%2FScriptCreationTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syslog777%2FScriptCreationTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syslog777%2FScriptCreationTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syslog777%2FScriptCreationTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Syslog777","download_url":"https://codeload.github.com/Syslog777/ScriptCreationTool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243248140,"owners_count":20260749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T18:45:14.109Z","updated_at":"2025-03-12T15:43:19.513Z","avatar_url":"https://github.com/Syslog777.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScriptCreationTool\nA tool for making scripts executable.\nThis is a quick app I wrote for making scripts executable. \n\nThe main script so far contains this simple code written in Bash.\n```\n#!/bin/bash\necho 'Please enter a valid path to your script(s).'\nread path \necho $path | java -jar ConvertToExecutable.jar\n```\nConvertToExecutable is a simple class that does a few things.\n\n * This java app will run a special command\n * that will change the properties of files\n * in a given directory with specific properties\n * For compactness, all code will be placed within\n * one file.\n * \n * This is not meant to be run by a normal user.\n * Another scrip will run this app.\n * With that being noted, certain variables will\n * be initialized without asking requesting data\n * from STDOUT.\n * \n * All files that are to be executable should\n * have the .sh extention. All files must also not\n * contain any empty spaces.\n\n``` \npackage bundle;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class ConvertToExecutable\n{\n    static String path;\n    static File directory;\n    static File[] listOfFiles;\n    static Scanner sc;\n    static Runtime run;\n    \n\tpublic static void main(String[] args)\n\t{\n        sc = new Scanner(System.in);\n        path = sc.next();       \n        directory = new File(path);\n        listOfFiles = directory.listFiles();\n        run = Runtime.getRuntime();\n        \n        for (File script: listOfFiles)\n        {\n            try\n\t    {\n\t        run.exec(\"chmod u+x \" + script);\n                System.out.println(script + \" has been set as executable.\");\n            } catch (IOException e)\n\t    {\n\t        e.printStackTrace();\n            }\n        }\n }\n\n}\n\n```\nSimply open up a terminal, cd to the folder ScriptCreationTool, and type ./MakeScriptsExecutable.sh.\nYou will be prompted to enter the directory of the scripts you want to make executable. After you enter it presd enter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyslog777%2Fscriptcreationtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyslog777%2Fscriptcreationtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyslog777%2Fscriptcreationtool/lists"}