Skip to content

Commit d54eece

Browse files
committed
Clean up and update local scripts
1 parent 6b8a0d7 commit d54eece

8 files changed

Lines changed: 23 additions & 295 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build and upload asset
1+
name: Build and Upload Asset
22

33
on:
44
push:

.goreleaser.yml

Lines changed: 0 additions & 198 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![Preview](https://user-images.githubusercontent.com/5447088/50716739-ebd26700-107a-11e9-9817-14230c53efd2.gif)
66

7-
filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app.
7+
`filebrowser` provides a file managing interface within a specified directory, and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have their own directory. It can be used as a standalone app.
88

99
## Demo
1010

@@ -27,7 +27,3 @@ For installation instructions please refer to our docs at [https://filebrowser.o
2727
[Command Runner](https://filebrowser.org/configuration/command-runner) - The command runner is a feature that enables you to execute any shell command you want before or after a certain event.
2828

2929
[Custom Branding](https://filebrowser.org/configuration/custom-branding) - You can customize your File Browser installation by change its name to any other you want, by adding a global custom style sheet and by using your own logotype if you want.
30-
31-
## Contributing
32-
33-
If you're interested in contributing to this project, our docs are best places to start [https://filebrowser.org/contributing](https://filebrowser.org/contributing).

get.sh

Lines changed: 0 additions & 87 deletions
This file was deleted.

build.sh renamed to local_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set +e # ignore errors and proceed
3+
set -e
44

55
SHELL="/usr/bin/env bash"
66
BASE_PATH="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
File renamed without changes.

package.sh renamed to local_package.sh

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
2-
trap 'echo -e "Aborted, error $? in command: $BASH_COMMAND"; trap ERR; return 1' ERR
2+
3+
set -e
4+
5+
trap 'echo -e "Aborted, error $? in command: $BASH_COMMAND"; trap ERR; exit 1' ERR
36
filebrowser_os="unsupported"
47
filebrowser_dl_ext=".tar.gz"
58
filebrowser_bin="filebrowser"
@@ -15,12 +18,26 @@ elif [[ $unameu == *WIN* || $unameu == MSYS* ]]; then
1518
filebrowser_dl_ext=".zip"
1619
else
1720
echo "Aborted, unsupported or unknown OS: $unameu"
18-
return 6
21+
exit 1
22+
fi
23+
24+
if [ -e "$filebrowser_bin" ]; then
25+
echo "Packaging executable '$filebrowser_bin'"
26+
else
27+
echo ""
28+
echo "***************************************************************************************************************";
29+
echo " Executable '$filebrowser_bin' doesn't exist ";
30+
echo " Please run 'local_build.sh' to create the executable ";
31+
echo "***************************************************************************************************************";
32+
echo ""
33+
exit 1
1934
fi
35+
2036
filebrowser_pkg="FileBrowser-${filebrowser_os}"
2137
filebrowser_zipfile="$filebrowser_pkg$filebrowser_dl_ext"
2238

2339
mkdir -p "$filebrowser_pkg"
2440
cp "$filebrowser_bin" "$filebrowser_pkg"/"$filebrowser_bin"
2541
cp "README.md" "$filebrowser_pkg"/README.md
2642
tar -zcvf "$filebrowser_zipfile" $filebrowser_pkg/
43+
rm -rf "$filebrowser_pkg"

scripts/commitlint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ if ! [ -x "$(command -v commitlint)" ]; then
66
exit 1
77
fi
88

9-
for commit_hash in $(git log --pretty=format:%H origin/master..HEAD); do
9+
for commit_hash in $(git log --pretty=format:%H origin/main..HEAD); do
1010
commitlint -f ${commit_hash}~1 -t ${commit_hash}
1111
done

0 commit comments

Comments
 (0)