install-script: remove filename extension before installing.
This commit is contained in:
parent
0f439be1f9
commit
7768df55a6
@ -2,4 +2,12 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
install -m 755 "$1" "$HOME/.local/bin"
|
SCRIPT_FILE="$1"
|
||||||
|
|
||||||
|
# Remove extension from script
|
||||||
|
if [[ $SCRIPT_FILE == *.* ]]
|
||||||
|
then
|
||||||
|
SCRIPT_FILE=${SCRIPT_FILE%.*}
|
||||||
|
fi
|
||||||
|
|
||||||
|
install -m 755 "$SCRIPT_FILE" "$HOME/.local/bin"
|
||||||
|
Loading…
Reference in New Issue
Block a user