mirror of
https://github.com/ivanilves/xiringuito.git
synced 2025-05-16 15:20:10 -07:00
Fix MacOSX
This commit is contained in:
parent
d0a8ef3f54
commit
c7e00a27d7
6
Makefile
6
Makefile
@ -6,9 +6,9 @@ help:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
rsync -a ./ $(INSTALL_PATH)/
|
rsync -a ./ $(INSTALL_PATH)/
|
||||||
install -o root -g root -m 0755 wrapper $(WRAPPER_PATH)/xiringuito
|
install -o root -g `id -g root` -m 0755 wrapper $(WRAPPER_PATH)/xiringuito
|
||||||
install -o root -g root -m 0755 wrapper $(WRAPPER_PATH)/xaval
|
install -o root -g `id -g root` -m 0755 wrapper $(WRAPPER_PATH)/xaval
|
||||||
sed -i "s|__INSTALL_PATH__|$(INSTALL_PATH)|g" $(WRAPPER_PATH)/xiringuito $(WRAPPER_PATH)/xaval
|
sed -i -r "s|__INSTALL_PATH__|$(INSTALL_PATH)|g" $(WRAPPER_PATH)/xiringuito $(WRAPPER_PATH)/xaval
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm $(WRAPPER_PATH)/xiringuito $(WRAPPER_PATH)/xaval
|
rm $(WRAPPER_PATH)/xiringuito $(WRAPPER_PATH)/xaval
|
||||||
|
5
xaval
5
xaval
@ -2,7 +2,6 @@
|
|||||||
#
|
#
|
||||||
# xaval - xiringuito connection manager
|
# xaval - xiringuito connection manager
|
||||||
#
|
#
|
||||||
set -u
|
|
||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
@ -63,7 +62,7 @@ function suicide_on_existing_profile(){
|
|||||||
|
|
||||||
function select_profile(){
|
function select_profile(){
|
||||||
local START_NUMBER=1
|
local START_NUMBER=1
|
||||||
local PROFILE_COUNT=$(list_profiles | wc -l)
|
local PROFILE_COUNT=$(list_profiles | wc -l | sed 's/ //g')
|
||||||
|
|
||||||
if [[ ${PROFILE_COUNT} -eq 0 ]]; then
|
if [[ ${PROFILE_COUNT} -eq 0 ]]; then
|
||||||
print_help
|
print_help
|
||||||
@ -96,7 +95,7 @@ function list_profiles(){
|
|||||||
if [[ -z "${FILTER_EXPR}" ]]; then
|
if [[ -z "${FILTER_EXPR}" ]]; then
|
||||||
FILTER_EXPR=".*"
|
FILTER_EXPR=".*"
|
||||||
fi
|
fi
|
||||||
for PROFILE in $(find ${DIR} -type f -printf "%f\n" | egrep "${FILTER_EXPR}" | sort); do
|
for PROFILE in $(find ${DIR} -type f | awk -F"/" '{print $NF}' | egrep "${FILTER_EXPR}" | sort); do
|
||||||
printf "%-20s = %s\n" ${PROFILE} "$(cat ${DIR}/${PROFILE})"
|
printf "%-20s = %s\n" ${PROFILE} "$(cat ${DIR}/${PROFILE})"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user