some stuff for the future

This commit is contained in:
Caleb Gardner
2020-11-09 15:59:50 -06:00
parent 7e2d7ee14b
commit ba5e3510ec
+3 -1
View File
@@ -75,9 +75,11 @@ func processApp(fold string) (out app) {
fis, _ := folder.Readdirnames(-1) fis, _ := folder.Readdirnames(-1)
for _, v := range fis { for _, v := range fis {
tmp, _ := os.Open(fold + "/" + v) tmp, _ := os.Open(fold + "/" + v)
if stat, _ := tmp.Stat(); stat.IsDir() { stat, _ := tmp.Stat()
if stat.IsDir() {
continue continue
} }
//TODO: check permission to see if it has exec permission
if strings.HasSuffix(strings.ToLower(v), ".appimage") { if strings.HasSuffix(strings.ToLower(v), ".appimage") {
out.appimg = append(out.appimg, v) out.appimg = append(out.appimg, v)
out.ex = append(out.ex, v) out.ex = append(out.ex, v)