Skip to content

Commit

Permalink
chore: Add shebang to shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightXiaoHan committed May 21, 2024
1 parent 9eae586 commit 59632ae
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/_unpack.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
Usage() {
echo "Usage: $0 --mode <install|uninstall> [--remove-cache <true|false>] [--install-dir <install-dir>] [--help]"
echo "args can be one or more of the following :"
Expand Down Expand Up @@ -48,4 +49,4 @@ if [ "$MODE" = "install" ]; then
./install.sh --mode unpack --install-dir $INSTALL_DIR --tarfile homecli.tar.gz --old-install-dir /home/runner/.homecli
elif [ "$MODE" = "uninstall" ]; then
./uninstall.sh --remove-cache $REMOVE_CACHE --install-dir $INSTALL_DIR
fi
fi
1 change: 1 addition & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
Usage() {
echo "Usage: $0 --mode <mode> --install-dir <install-dir> [--tarfile <tarfile>] [--old-install-dir <old-install-dir>] [--help]"
echo "args can be one or more of the following :"
Expand Down
1 change: 1 addition & 0 deletions scripts/install_macos.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
set -e
echo "Install Softwares for macOS"
export NONINTERACTIVE=1
Expand Down
1 change: 1 addition & 0 deletions scripts/pack.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
Usage() {
echo "Usage: $0 --outfile <outfile> [--install-dir <install-dir>] [--help]"
echo "args can be one or more of the following :"
Expand Down
1 change: 1 addition & 0 deletions scripts/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
Usage() {
echo "Usage: $0 [--remove-cache <true|false>] [--install-dir <install-dir>] [--help]"
echo "args can be one or more of the following :"
Expand Down
1 change: 1 addition & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
set -e
DIR=${HOMECLI_INSTALL_DIR:-$HOME/.homecli}

Expand Down

0 comments on commit 59632ae

Please sign in to comment.